[SR-Users] Using =~ to get the group identifier with longest match
Juha Heinanen
jh at tutpro.com
Mon Jun 6 10:49:58 CEST 2011
Iñaki Baz Castillo writes:
> The problem is that it would require perform N regular expression
> matching and such expressions will be very long (all the country
> prefixes in the world). The main problem is that some groups would
> contain prefixes starting with, for example, 12, while in other group
> there is the prefix 1 (an the very same in multiple cases, so doing it
> manually would be too much manual work and any change in the world
> would require hard modifications).
perhaps you could use dialplan module. it there is overlapping regular
expressions, one is selected based on its priority.
-- juha
More information about the sr-users
mailing list