Hi Matt! :)
You can use the "Local" channel driver:
exten => _9NXXNXXXXXX,1,Dial(Local/${EXTEN:[EMAIL PROTECTED])
Where ${CONTEXT} is set to the local context you want to use.
-wade
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:asterisk-users-
> [EMAIL PROTECTED] On Behalf Of Matthew M. Gamble
> Sent: Thursday, August 07, 2003 8:36 PM
> To: [EMAIL PROTECTED]
> Subject: [Asterisk-Users] Call routing question
>
> I have a quick call routing question that I'm sure is simple, but for the
> life of me I can't figure out.
>
> For example, someone dials 94162384000 asterisk trys our first call route
> (our sip trunk) as per the extension rule below:
>
> exten => _9NXXXXXXXXX,1,Dial(SIP/${EXTEN:[EMAIL PROTECTED])
>
> However, this call fails because 94162384000 is one of our phone lines and
> our SIP gateway detects a loop and returns a SIP 503 message. Is there a
> way to have asterisk stip the '9' and try it as a local extension call as
> if
> the user didn't dial 9? I try this (see below) and it failed:
>
> exten => _9NXXXXXXXXX,2,Dial(${EXTEN:1})
>
> Thanks in advance, I'm sure it's a simple problem and I'm just missing
> something...
>
> Regards,
>
> M. Gamble
>
> _______________________________________________
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users