[Asterisk-Users] Call routing question

Steven Critchfield critch at basesys.com
Thu Aug 7 19:12:26 MST 2003


On Thu, 2003-08-07 at 19:55, Wade Weppler wrote:
> 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.

What would be wrong with just a simple Goto?
exten => _9NXXXXXXXXX,1,Dial(SIP/${EXTEN:1}@10.10.100.40)
exten => _9NXXXXXXXXX,2,Goto(${EXTEN:1}|1)

> > -----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
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list