2011/6/6 Juha Heinanen <j...@tutpro.com>:
>> Thanks. I don't need different priorities, I just need that, in case
>> of multiple matching (i.e. ^1 ,  ^10) the longest matching wins. Does
>> the dialplan module allow it?
>
> try by giving rule ^1 lower priority than ^10.

Yes, the trick will be:

  priority = 20 - strlen(match_exp)

so longest expressions would have higher priority.

-- 
Iñaki Baz Castillo
<i...@aliax.net>

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to