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
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.,
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.
>
>
>
> [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
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
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)
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(
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
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