[OpenSIPS-Users] Dialplan module and priority

Ali Pey alipey at gmail.com
Thu Jul 16 23:47:15 CEST 2015


Hello,

Let's say I have the two following rules in my dialplan table:

Rule 1:
- match_op = 1 (regexp)
- Priority=1
- match_exp = "^888[0-9]{7}"

Rule 2:
- match_op = 1 (regexp)
- Priority=2
- match_exp = "^888444[0-9]{4}"


If I use dp_translate for 8882221234, it matches rule 1 and that's good.
If I use dp_translate for 8884441234, it still matches rule 1 and that's
not good. It should match rule 2.


Is this a bug or expected behaviour?

Is there a way I can work around this?

Thanks,
Ali Pey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150716/40bac7a2/attachment.htm>


More information about the Users mailing list