[sr-dev] LCR/CR and prefix mask (REGEX?)

Edson - Lists 4lists at gmail.com
Fri Jul 3 04:13:50 CEST 2009


Hi...

Normally, dial plans are based on some sort of mask. For example, in 
Brazil, local fix destination have all 8 digits and start with [2-5] 
(mask [2-5][0-9]{7}), local mobile numbers have also 8 digits, but start 
with [6-9] (mask [6-9][0-9]{7}); so all local numbers mask would be 
[2-9][0-9]{7}... I could continue but You got the idea... ;)

Well, what I'm trying to find is a way to use this kind of definition in 
place of (or as) the 'prefix' field, either from LCR or CR module.

The advantages are that with this, not only prefix are matched, but also 
some sanity checks, like length, can be done in a single step.

Is this a new feature or is there a way to accomplish this?

Edson.



More information about the sr-dev mailing list