<div dir="ltr"><div class="gmail_extra">Thank you for the responses.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I have alternated priorities and every other thing I could think of and it would not change the behavior.</div><div class="gmail_extra"><br></div><div class="gmail_extra">It always picks the first match if it&#39;s a regex type (<span style="color:rgb(80,0,80)">match_op=1</span><span style="color:rgb(80,0,80)">)</span>. It works as expected if it&#39;s equal type (match_op=0)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Priority doesn&#39;t seem to kick in when it is a regex.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 17, 2015 at 7:19 AM, Muhammad Danish Moosa <span dir="ltr">&lt;<a href="mailto:danishmoosa@gmail.com" target="_blank">danishmoosa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi.<br><br></div>Higher the priority value means 888444&#39;s selection should be prioritized. Did you reload the config , have used similar rules and worked.<br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Jul 17, 2015 at 3:01 AM, SamyGo <span dir="ltr">&lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div>Swapping the priority works the way you want ? I have a feeling this makes sense (just like an ACL or firewall rules) ^888444* should get called before ^888* .</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Jul 16, 2015 at 5:47 PM, Ali Pey <span dir="ltr">&lt;<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hello,<div><br></div><div>Let&#39;s say I have the two following rules in my dialplan table:</div><div><br></div><div>Rule 1:</div><div>- match_op = 1 (regexp)<br></div><div>- Priority=1</div><div>- match_exp = &quot;^888[0-9]{7}&quot;<br></div><div><br></div><div>Rule 2:</div><div><div>- match_op = 1 (regexp)<br></div><div>- Priority=2</div><div>- match_exp = &quot;^888444[0-9]{4}&quot;<br></div></div><div><br></div><div><br></div><div>If I use dp_translate for <a href="tel:8882221234" value="+18882221234" target="_blank">8882221234</a>, it matches rule 1 and that&#39;s good.</div><div>If I use dp_translate for <a href="tel:8884441234" value="+18884441234" target="_blank">8884441234</a>, it still matches rule 1 and that&#39;s not good. It should match rule 2.<br></div><div><br></div><div><br></div><div>Is this a bug or expected behaviour?</div><div><br></div><div>Is there a way I can work around this?</div><div><br></div><div>Thanks,</div><div>Ali Pey</div><div><br></div><div><br></div></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=32a8d7d9-2493-4e89-b709-bb0ba450bd2a&amp;cm_type=link&amp;cm_link=1cb4ca2c-2dfd-4fe7-80bf-9d1524b3a71c&amp;cm_destination=http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=32a8d7d9-2493-4e89-b709-bb0ba450bd2a&amp;cm_type=link&amp;cm_link=595a5762-566c-4ca6-b105-15fad39ea984&amp;cm_destination=http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br></div></div><span class=""><font color="#888888">-- <br><div>Muhammad Danish Moosa<br><br>&quot; The core of mans&#39; spirit comes from new experiences. &quot;___ Christopher McCandless</div>
</font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=32a8d7d9-2493-4e89-b709-bb0ba450bd2a&amp;cm_type=link&amp;cm_link=78c0cc1f-2afa-4eec-886c-ddf1861aec89&amp;cm_destination=http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div><img class="cm-tracker" src="https://contactmonkey.com/api/v1/tracker?cm_session=32a8d7d9-2493-4e89-b709-bb0ba450bd2a&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com" width="0" height="0" style="border:0; width:0px; height:0px;"><img class="cm-tracker" src="https://contactmonkey.com/api/v1/tracker?cm_session=32a8d7d9-2493-4e89-b709-bb0ba450bd2a&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com" width="0" height="0" style="border:0; width:0px; height:0px;"><font class="cm-tracker" face="https://contactmonkey.com/api/v1/tracker?cm_session=32a8d7d9-2493-4e89-b709-bb0ba450bd2a&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com" style=""></font></div>