[Asterisk-Users] Call routing question

Wade Weppler weppler at wwworks-inc.com
Thu Aug 7 17:55:57 MST 2003


Hi Matt!  :)

You can use the "Local" channel driver:

exten => _9NXXNXXXXXX,1,Dial(Local/${EXTEN:1}@${CONTEXT})

Where ${CONTEXT} is set to the local context you want to use.

-wade


> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com [mailto:asterisk-users-
> admin at lists.digium.com] On Behalf Of Matthew M. Gamble
> Sent: Thursday, August 07, 2003 8:36 PM
> To: asterisk-users at lists.digium.com
> 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:1}@10.10.100.40)
> 
> 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
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list