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