[OpenSIPS-Users] Dialplan module and priority

SamyGo govoiper at gmail.com
Fri Jul 17 00:01:55 CEST 2015


Hi,
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* .



On Thu, Jul 16, 2015 at 5:47 PM, Ali Pey <alipey at gmail.com> wrote:

> 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
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150716/3818460f/attachment-0001.htm>


More information about the Users mailing list