[asterisk-users] Dial plan order of operations
Steve Edwards
asterisk.org at sedwards.com
Mon Sep 24 16:17:29 CDT 2012
On Mon, 24 Sep 2012, Asterisk Newb wrote:
> Thanks, situated the problem with the following:
>
> exten => _212555.,1,Authenticate(/etc/asterisk/pins||3,j)
> exten => _212555.,2,Dial(SIP/${EXTEN:3}@level3,90,tr)
Two suggestions:
1) Using the 'n' priority will make your dialplans more maintainable.
2) Using a more 'explicit' pattern like '_212555xxxx' will result in a
more responsive dialplan* because Asterisk 'knows' it is looking for a 10
digit number and won't have to 'wait' to see if it has the whole number.
(For circuits that don't deliver the DID/DNIS all at once.)
Using an 'open ended' pattern could also expose you to unexpected
outcomes.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list