[OpenSIPS-Users] Dialplan module and priority
Muhammad Danish Moosa
danishmoosa at gmail.com
Fri Jul 17 13:19:08 CEST 2015
Hi.
Higher the priority value means 888444's selection should be prioritized.
Did you reload the config , have used similar rules and worked.
On Fri, Jul 17, 2015 at 3:01 AM, SamyGo <govoiper at gmail.com> wrote:
> 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
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
Muhammad Danish Moosa
" The core of mans' spirit comes from new experiences. "___ Christopher
McCandless
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150717/5064fa64/attachment.htm>
More information about the Users
mailing list