<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 12:25 PM, Nick Olsen <span dir="ltr"><<a href="mailto:nick@flhsi.com" target="_blank">nick@flhsi.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-family:arial,helvetica,sans-serif;font-size:12px"><div>Hello All, Looking for a little guidance on Real Time Pattern Matching.</div>


<div> </div>

<div>We are attempting to block outbound 411 via when someone dials NXX-555-XXXX, The must common being NXX-555-1212. However, We have some outbound providers that consider any call to NXX-555-XXXX a directory assistance call. So simply making my pattern _NXX5551212 doesn't work.</div>


<div> </div>

<div>So as you can see from the lines below. If I Dial 321-555-1212 the call is being applied to _321NXXXXXX not my _NXX555XXXX. I assume because they are equally specific. Does anyone have any creative ideas to pattern match NXX-555-XXXX besides what I've done here?</div>


<div> </div>

<div>1056    outbound    _NXX555XXXX    1    Goto    outbound-411,411,1    Block Dir Assist<br>
1057    outbound    _1NXX555XXXX    1    Goto    outbound-411,411,1    Block Dir Assist<br>
1776    outbound    _321NXXXXXX    1    Goto    outbound-cocoa,${EXTEN},1    Outbound 321 Catchall<br>
1777    outbound    _1321NXXXXXX    1    Goto    outbound-cocoa,${EXTEN},1    Outbound 1321 Catchall</div></span></blockquote><div><br></div><div>The _321NXXXXXX is more specific than _NXX555XXXX that is why it is selected.<br>
</div><div><br></div><div>See<br><a href="https://wiki.asterisk.org/wiki/display/AST/Pattern+Matching">https://wiki.asterisk.org/wiki/display/AST/Pattern+Matching</a><br></div><div>for the rules of pattern matching.<br></div>
<div><br></div><div>Richard<br></div></div><br></div></div>