[asterisk-users] REGEX expression for NXXNXXXXXX?

Noah Miller noahisaacmiller at gmail.com
Thu Jul 5 11:48:58 CDT 2007


Hi Again Brent -

> > What would a valid regexp in Asterisk be to identify a NANP number, i.e.,
> > NXXNXXXXXX?
>
> I think you've got it right already.  What do you need to do?

If you wanted to get more specific and identify ONLY NANP, you may
have to break it out into more than just one rule:

_800NXXXXXX
_888NXXXXXX
_877NXXXXXX
_866NXXXXXX
....

etc.

BTW: I just read up and discovered that 855, 844, 833, and 822 are
reserved but not yet used.


- Noah



More information about the asterisk-users mailing list