<br><br><div class="gmail_quote">On Mon, Sep 24, 2012 at 12:43 PM, A J Stiles <span dir="ltr">&lt;<a href="mailto:asterisk_list@earthshod.co.uk" target="_blank">asterisk_list@earthshod.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<br>
</div></div>Asterisk always tests against the most specific  (= hardest-to-match)<br>
wildcarded extensions first, regardless of the actual order in the dialplan.<br>
Since _1212555. is harder to match than _1212., the former will be tested<br>
first.<br>
<br>
--<br>
AJS<br>
<br></blockquote><div> <br>So then the proper way would be<br><br>[allowed]<br>
exten =&gt; _1212321.,s,Goto(denied,s,1)<br>exten =&gt; _1212333.,s,Goto(denied,s,1)<br>exten =&gt; _1212456.,s,Goto(denied,s,1)<br>exten =&gt; _1212555., 1,Authenticate(pins||3,j)<br>
exten =&gt; _1212555., 2,Dial(SIP/${EXTEN)@mycarrier)<br>
exten =&gt; 102,Hangup<br>
<br>
<br>
<br>
[denied]<br>
exten =&gt; s,1,Playback(num-outside-area)<br>
exten =&gt; s,2,Hangup<br></div></div><br>?<br>