The NANPA maintains this database and the full database is available in 8 files. I have imported this into a MySQL table and can query based on rate center and npa-nxx.
I use wget -a using a file containing the following: http://www.nanpa.com/nanp1/cnutlzd.zip http://www.nanpa.com/nanp1/csutlzd.zip http://www.nanpa.com/nanp1/eautlzd.zip http://www.nanpa.com/nanp1/enutlzd.zip http://www.nanpa.com/nanp1/esutlzd.zip http://www.nanpa.com/nanp1/wnutlzd.zip http://www.nanpa.com/nanp1/wputlzd.zip http://www.nanpa.com/nanp1/wsutlzd.zip Then I have a perl script that reads each file in and puts them into a MySQL table. I hope this helps with that you are looking for. sl _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users