Page 1 of 1

dial number with prefix

PostPosted: Fri Jun 10, 2011 10:02 am
by viciflash
i added a new carrier with dialing prefix 991

exten => _991NXXNXXXXXX,1,Dial(SIP/${EXTEN:2}@NewTelco)
exten => _991NXXNXXXXXX,2,Hangup


the leads are formatted this way: areacode+tel. (ex.: 5559987788)

i created a new campaign and put 991 in dial prefix so that agents using this campaign use the new telco, except that im getting invalid extension...

anything i missed? im sure its the formatting of number being dialed but cant figure it out yet.

PostPosted: Fri Jun 10, 2011 12:43 pm
by viciflash
i figured it out.

the system dials it as 991 + 15559987788

so i changed it to ...EXTEN:3... instead of 2. :(

im wondering why there's "1" in front of the telephone number. i checked the vicidial_list table and says there '866xxxxxxx'

PostPosted: Fri Jun 10, 2011 6:39 pm
by williamconley
in the united states the "1" is the dial code. check the dial code field.

your dial prefix should have been "99" insted of "991" as the "1" is already provided by the dial code field (note that your previous dial prefix was "9" not "91", right?)

technically, inside the us, the "1" is necessary to indicate that you are dialing a number outside your local dialing area. if you are in the 321 area code and dialing a 407 area code number that is LOCAL to your area, you do not need the "1" (and in fact the call may fail if you put the 1 in the number when dialing it). With SIP/VOIP calls, this is completely ignored and most providers either want or don't want the "1" across the board (some will simply accept it either way) because there is NO local dialing (or if there is, it is transparent to the user and the VOIP company, handled strictly by the final TELCO that actually hits copper).

PostPosted: Fri Jun 10, 2011 8:47 pm
by viciflash
i see. thanks for the clarification.

out of curiosity, where is that dial code field?

PostPosted: Fri Jun 10, 2011 11:10 pm
by williamconley
Database: asterisk
Table: vicidial_list
Field: phone_code

during import, phone_code column or phone_code override in the Load New Leads gui interface

PostPosted: Sat Jun 11, 2011 6:18 am
by viciflash
i didn't notice that during uploading of leads.

i'll check on my next upload.