5 Apr
2011
5 Apr
'11
3:26 p.m.
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