Thank you for the responses. I have alternated priorities and every other thing I could think of and it would not change the behavior.
It always picks the first match if it's a regex type (match_op=1). It works as expected if it's equal type (match_op=0) Priority doesn't seem to kick in when it is a regex. On Fri, Jul 17, 2015 at 7:19 AM, Muhammad Danish Moosa < [email protected]> wrote: > 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 <[email protected]> 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 <[email protected]> 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 >>> [email protected] >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> <https://contactmonkey.com/api/v1/tracker?cm_session=32a8d7d9-2493-4e89-b709-bb0ba450bd2a&cm_type=link&cm_link=1cb4ca2c-2dfd-4fe7-80bf-9d1524b3a71c&cm_destination=http://lists.opensips.org/cgi-bin/mailman/listinfo/users> >>> >>> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> <https://contactmonkey.com/api/v1/tracker?cm_session=32a8d7d9-2493-4e89-b709-bb0ba450bd2a&cm_type=link&cm_link=595a5762-566c-4ca6-b105-15fad39ea984&cm_destination=http://lists.opensips.org/cgi-bin/mailman/listinfo/users> >> >> > > > -- > Muhammad Danish Moosa > > " The core of mans' spirit comes from new experiences. "___ Christopher > McCandless > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > <https://contactmonkey.com/api/v1/tracker?cm_session=32a8d7d9-2493-4e89-b709-bb0ba450bd2a&cm_type=link&cm_link=78c0cc1f-2afa-4eec-886c-ddf1861aec89&cm_destination=http://lists.opensips.org/cgi-bin/mailman/listinfo/users> > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
