<div dir="ltr"><div>Hi.<br><br></div>Higher the priority value means 888444'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"><<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>></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"><<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>></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'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 = "^888[0-9]{7}"<br></div><div><br></div><div>Rule 2:</div><div><div>- match_op = 1 (regexp)<br></div><div>- Priority=2</div><div>- match_exp = "^888444[0-9]{4}"<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'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'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>" The core of mans' spirit comes from new experiences. "___ Christopher McCandless</div>
</div>