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

Juha Heinanen jh at tutpro.com
Fri Jul 3 07:00:05 CEST 2009


Edson - Lists writes:

 > 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.

in lcr module prefix is a string of characters.  you thus cannot combine
any sanity checks with it, but need to do those separately.

-- juha



More information about the sr-dev mailing list