2011/6/6 Juha Heinanen jh@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.