Populating the vicidial_nanpa_prefix_codes table
Posted: Wed May 23, 2012 9:41 am
Hi,
Regarding the use of "Time Zone Setting" for a list and the "NANPA_PREFIX" option ...
The only way to enable this feature is to purchase the $250 NANPA(North America) phone prefix from vicidial.org?
* Note: I am not against paying for it just asking.
* I have purchased the admin manual already.
I've downloaded the area code database (MS Access format) from http://www.nanpa.com/area_codes/.
I have converted this to Mysql and imported it into a seperate database. Comparing the two tables =>
vicidial_nanpa_prefix_codes
and
public_npa_database_table
They are not the same. So it seems you can't just download the free data and populate the vicidial table yourself?
Is it viable to craft a script that imports or basically just purchase the data from vicidial.org?
I'm pretty new to this so please forgive any silly questions. I have read the manual and searched the forum here.
Here is the database schema from vicidial's asterisk database and the mysql table that is freely available online for download:
mysql> describe vicidial_nanpa_prefix_codes;
+-------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------------+------+-----+---------+-------+
| areacode | char(3) | YES | MUL | NULL | |
| prefix | char(3) | YES | | NULL | |
| GMT_offset | varchar(6) | YES | | NULL | |
| DST | enum('Y','N') | YES | | NULL | |
| latitude | varchar(17) | YES | | NULL | |
| longitude | varchar(17) | YES | | NULL | |
| city | varchar(50) | YES | | | |
| state | varchar(2) | YES | | | |
| postal_code | varchar(10) | YES | | | |
| country | varchar(2) | YES | | | |
mysql> describe public_npa_database_table;
+--------------------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------------------------+--------------+------+-----+---------+-------+
| NPA | int(11) | YES | | NULL | |
| Type of Code | varchar(40) | YES | | NULL | |
| Assignable | varchar(50) | YES | | NULL | |
| Explanation | varchar(25) | YES | | NULL | |
| Reserved | varchar(255) | YES | | NULL | |
| Assigned? | varchar(50) | YES | | NULL | |
| Asgt Date | datetime | YES | | NULL | |
| Use | varchar(1) | YES | | NULL | |
| Service | varchar(50) | YES | | NULL | |
| Location | varchar(50) | YES | | NULL | |
| Country | varchar(50) | YES | | NULL | |
| In Service? | varchar(50) | YES | | NULL | |
| In Svc Date | datetime | YES | | NULL | |
| Status | varchar(255) | YES | | NULL | |
| PL | varchar(60) | YES | | NULL | |
| Overlay | varchar(255) | YES | | NULL | |
| Overlay Complex | varchar(255) | YES | | NULL | |
| Parent | int(11) | YES | | NULL | |
| Time Zone | varchar(50) | YES | | NULL | |
| Map | varchar(50) | YES | | NULL | |
| Is NPA in Jeoparady? | varchar(255) | YES | | NULL | |
| Is Relief Planning in Progress | varchar(255) | YES | | NULL | |
| Home NPA Local Calls | varchar(20) | YES | | NULL | |
| Home NPA Toll Calls | varchar(20) | YES | | NULL | |
| Foreign NPA Local Calls | varchar(20) | YES | | NULL | |
| Foreign NPA Toll Calls | varchar(20) | YES | | NULL | |
| perm HNPA local | varchar(20) | YES | | NULL | |
| perm HNPA toll | varchar(20) | YES | | NULL | |
| perm FNPA local | varchar(20) | YES | | NULL | |
| dp Notes | varchar(200) | YES | | NULL | |
My goal is to more accurately dial in the USA.
We don't want to call an area code too early or too late.
Thanks!
VERSION: 2.4-361a | BUILD: 120221-1647 | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel(R) Core(TM)2 Duo CPU | ViciBox_Redux.x86_64-3.1.15.preload.iso
Regarding the use of "Time Zone Setting" for a list and the "NANPA_PREFIX" option ...
The only way to enable this feature is to purchase the $250 NANPA(North America) phone prefix from vicidial.org?
* Note: I am not against paying for it just asking.
* I have purchased the admin manual already.
I've downloaded the area code database (MS Access format) from http://www.nanpa.com/area_codes/.
I have converted this to Mysql and imported it into a seperate database. Comparing the two tables =>
vicidial_nanpa_prefix_codes
and
public_npa_database_table
They are not the same. So it seems you can't just download the free data and populate the vicidial table yourself?
Is it viable to craft a script that imports or basically just purchase the data from vicidial.org?
I'm pretty new to this so please forgive any silly questions. I have read the manual and searched the forum here.
Here is the database schema from vicidial's asterisk database and the mysql table that is freely available online for download:
mysql> describe vicidial_nanpa_prefix_codes;
+-------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------------+------+-----+---------+-------+
| areacode | char(3) | YES | MUL | NULL | |
| prefix | char(3) | YES | | NULL | |
| GMT_offset | varchar(6) | YES | | NULL | |
| DST | enum('Y','N') | YES | | NULL | |
| latitude | varchar(17) | YES | | NULL | |
| longitude | varchar(17) | YES | | NULL | |
| city | varchar(50) | YES | | | |
| state | varchar(2) | YES | | | |
| postal_code | varchar(10) | YES | | | |
| country | varchar(2) | YES | | | |
mysql> describe public_npa_database_table;
+--------------------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------------------------+--------------+------+-----+---------+-------+
| NPA | int(11) | YES | | NULL | |
| Type of Code | varchar(40) | YES | | NULL | |
| Assignable | varchar(50) | YES | | NULL | |
| Explanation | varchar(25) | YES | | NULL | |
| Reserved | varchar(255) | YES | | NULL | |
| Assigned? | varchar(50) | YES | | NULL | |
| Asgt Date | datetime | YES | | NULL | |
| Use | varchar(1) | YES | | NULL | |
| Service | varchar(50) | YES | | NULL | |
| Location | varchar(50) | YES | | NULL | |
| Country | varchar(50) | YES | | NULL | |
| In Service? | varchar(50) | YES | | NULL | |
| In Svc Date | datetime | YES | | NULL | |
| Status | varchar(255) | YES | | NULL | |
| PL | varchar(60) | YES | | NULL | |
| Overlay | varchar(255) | YES | | NULL | |
| Overlay Complex | varchar(255) | YES | | NULL | |
| Parent | int(11) | YES | | NULL | |
| Time Zone | varchar(50) | YES | | NULL | |
| Map | varchar(50) | YES | | NULL | |
| Is NPA in Jeoparady? | varchar(255) | YES | | NULL | |
| Is Relief Planning in Progress | varchar(255) | YES | | NULL | |
| Home NPA Local Calls | varchar(20) | YES | | NULL | |
| Home NPA Toll Calls | varchar(20) | YES | | NULL | |
| Foreign NPA Local Calls | varchar(20) | YES | | NULL | |
| Foreign NPA Toll Calls | varchar(20) | YES | | NULL | |
| perm HNPA local | varchar(20) | YES | | NULL | |
| perm HNPA toll | varchar(20) | YES | | NULL | |
| perm FNPA local | varchar(20) | YES | | NULL | |
| dp Notes | varchar(200) | YES | | NULL | |
My goal is to more accurately dial in the USA.
We don't want to call an area code too early or too late.
Thanks!
VERSION: 2.4-361a | BUILD: 120221-1647 | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel(R) Core(TM)2 Duo CPU | ViciBox_Redux.x86_64-3.1.15.preload.iso