[asterisk-users] problem controlling dialplan order

2008-08-07 Thread Adrian Marsh
Hi All, On a 1.4.15 system, I've a context as below, where I need to catch some specific US ranges and dial direct via SIP rather than a PSTN trunk. But the logic always goes via the International Trunk and I cant see why... [local] exten = _00165011091[45]0-9],1,NoOp(I AM HERE) exten =

Re: [asterisk-users] problem controlling dialplan order

2008-08-07 Thread Felippe Silvestre
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Marsh Sent: Thursday, August 07, 2008 07:46 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] problem controlling dialplan order

Re: [asterisk-users] problem controlling dialplan order

2008-08-07 Thread Adrian Marsh
: [asterisk-users] problem controlling dialplan order Try this: [local] exten = _00165011091[45][0-9],1,NoOp(I AM HERE) exten = _00165011091[45][0-9],n,Macro(setcli) exten = _00165011091[45][0-9],n,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _00165011091[45][0-9],n,Hangup The [ before 0-9