[Freeswitch-users] Sane Dialplan Regex
Max Clark
max.clark at gmail.com
Tue Apr 5 19:26:48 MSD 2011
Hello,
I am trying to clean up the number of invalid calls being sent
upstream to PSTN gateways. I've been researching numbering formats and
could use some guidance/clarification.
Currently I'm matching NADP calls looking by looking for a destination
number matching 1 + 10 digits:
<condition field="destination_number" expression="^(1\d{10})$">
>From what I've found NPA should be 201-999 and NXX should be 200-999
(ugly regex):
<condition field="destination_number"
expression="^(1[2-9][0-9]{2}[2-9]\d{2}\d{4})$">
Are there any cases where the NPA & NXX would not conform to this list?
Thanks,
Max
More information about the FreeSWITCH-users
mailing list