Looks quite similar to Asterisk syntax. Out of curiosity, how are patterns in the dial plan separated? (carriage returns? semicolons?)
Also, what do you want the system to do? Perhaps you can start with a 'catch-all' dialplan like this:
.
If you only want 7-digit numbers, you might want
NXXXXXX
When a 7-digit number is dialed, add area code 599 (invalid area code):
599+NXXXXXX
Any 10-digit number?
NXXNXXXXXX - (NXXXXXXXXX will also work, but in all valid phone numbers, the 4th digit is 2-9.)
Strip the "1" from any 11-digit number?
1|NXXNXXXXXX
Bookmarks