[asterisk-users] Dial plan order of operations

2012-09-24 Thread Asterisk Newb
Hello all, I inherited an Asterisk 1.2 machine and I have a question about the order of operations. I want to give people the ability to dial specifics and block others. For example, lets say NYC [allowed] exten => _1212555., 1,Authenticate(pins||3,j) exten => _1212555., 2,Dial(SIP/${EXTEN)@myca

Re: [asterisk-users] Dial plan order of operations

2012-09-24 Thread A J Stiles
On Monday 24 September 2012, Asterisk Newb wrote: > Hello all, > > I inherited an Asterisk 1.2 machine and I have a question about the order > of operations. > > I want to give people the ability to dial specifics and block others. For > example, lets say NYC > > [allowed] > exten => _1212555.,

Re: [asterisk-users] Dial plan order of operations

2012-09-24 Thread Asterisk Newb
On Mon, Sep 24, 2012 at 12:43 PM, A J Stiles wrote: > > > Asterisk always tests against the most specific (= hardest-to-match) > wildcarded extensions first, regardless of the actual order in the > dialplan. > Since _1212555. is harder to match than _1212., the former will be tested > first. > >

Re: [asterisk-users] Dial plan order of operations

2012-09-24 Thread Asterisk Newb
> > [allowed] > exten => _1212321.,s,Goto(denied,s,1) > exten => _1212333.,s,Goto(denied,s,1) > exten => _1212456.,s,Goto(denied,s,1) > > exten => _1212555., 1,Authenticate(pins||3,j) > exten => _1212555., 2,Dial(SIP/${EXTEN)@mycarrier) > exten => 102,Hangup > > > > [denied] > exten => s,1,Playback

Re: [asterisk-users] Dial plan order of operations

2012-09-24 Thread Danny Nicholas
From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Asterisk Newb Sent: Monday, September 24, 2012 1:31 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Dial plan order of operations

Re: [asterisk-users] Dial plan order of operations

2012-09-24 Thread Eric Wieling
erisk Newb Sent: Monday, September 24, 2012 2:31 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Dial plan order of operations [allowed] exten => _1212321.,s,Goto(denied,s,1) exten => _1212333.,s,Goto(denied,s,1)

Re: [asterisk-users] Dial plan order of operations

2012-09-24 Thread Asterisk Newb
On Mon, Sep 24, 2012 at 2:55 PM, Eric Wieling wrote: > Going to n+101 was deprecated in Asterisk 1.2 or 1.4. Don't use it.. > Read the docs for Authenticate and see what diaplan variables you can > check. > > > Thanks, situated the problem with the following: exten => _212555.,1,Authenticate(

Re: [asterisk-users] Dial plan order of operations

2012-09-24 Thread Steve Edwards
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

Re: [asterisk-users] Dial plan order of operations

2012-09-26 Thread Tzafrir Cohen
On Mon, Sep 24, 2012 at 02:17:29PM -0700, Steve Edwards wrote: > 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 sugges