<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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 8882221234, it matches rule 1 and that&#39;s good.</div><div>If I use dp_translate for 8884441234, 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>_______________________________________________<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></div>