Page 1 of 1

new ara code 575 needs to be added to the list of areacodes

PostPosted: Thu Sep 02, 2010 2:16 pm
by bobbymc
/local_home/asterisk/ADMIN_area_code_populate.pl --purge-table

currently i believe downloads it from a central file. Can you guys also add area code 575 which is New Mexico and i believe gmt zone -7

PostPosted: Thu Sep 02, 2010 2:29 pm
by mflorell
what version of ViciDial are you using?

This areacode and several others were added a long time ago, when did you last update your phone codes list?

I just ran this on a server and that areacode was in there.

Can you post the output of running that script with the --debugX flag?

PostPosted: Thu Sep 02, 2010 2:32 pm
by bobbymc
vicidial 2.0.5rc6



/usr/bin/wget

Downloading latest phone codes tables
--2010-09-02 12:31:58-- http://phonecodes.vicidial.com/phone_co ... latest.txt
Resolving phonecodes.vicidial.com... 208.38.149.188
Connecting to phonecodes.vicidial.com|208.38.149.188|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36255 (35K) [text/plain]
Saving to: `phone_codes_GMT-latest.txt.439'

100%[==============================================================================================================================>] 36,255 215K/s in 0.2s

2010-09-02 12:31:59 (215 KB/s) - `phone_codes_GMT-latest.txt.439' saved [36255/36255]

--2010-09-02 12:31:59-- http://phonecodes.vicidial.com/GMT_USA_zip-latest.txt
Resolving phonecodes.vicidial.com... 208.38.149.188
Connecting to phonecodes.vicidial.com|208.38.149.188|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 668146 (652K) [text/plain]
Saving to: `GMT_USA_zip-latest.txt.438'

100%[==============================================================================================================================>] 668,146 1.23M/s in 0.5s

2010-09-02 12:32:00 (1.23 MB/s) - `GMT_USA_zip-latest.txt.438' saved [668146/668146]

1015
41750

PostPosted: Thu Sep 02, 2010 2:40 pm
by mflorell
Wow, looks like you have run this 439 times.

Just delete the original phone_codes_GMT-latest.txt file in your home directory and run the script again. I will be adding something in the script to remove the old ones so this doesn't happen again.

PostPosted: Thu Sep 02, 2010 2:49 pm
by bobbymc
looks like the newer version fixed it. i jsut updated that part of the scritp to the latest version and it did the trick