<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"><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:0 0 0 .8ex;border-left:1px #ccc 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 class="h5">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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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="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">Users@lists.opensips.org</a><br>
<a href="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>-- <br><div class="gmail_signature">Muhammad Danish Moosa<br><br>&quot; The core of mans&#39; spirit comes from new experiences. &quot;___ Christopher McCandless</div>
</div>