Page 1 of 1
Changing the "Phone code"
Posted:
Fri Feb 11, 2011 7:20 pm
by manny
Hello all!!
In the Manual Dial on the admin console there is a box where the phone code is set by default 1 for US, I'm from Mexico, however I need it to be nothing, no code by default, does anyone know how to do that??
Thanks a lot comunity!
cheers!
Posted:
Fri Feb 11, 2011 9:20 pm
by williamconley
when you post, please post your entire configuration including (but not limited to) your installation method and vicidial version with build.
this IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)
You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "from scratch" you must post your operating system and should also post the .iso version from which you installed your original operating system.
Similar to This:
Vicibox X.X from .iso | Vicidial X.X.X Build XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation
_______
If you want to "ignore" the dial code, you can choose that option in the campaign (omit phone code). In that case it would make no difference what was in the phone code field. Are you saying that when dialing a number in mexico, you do not dial 1 or 0 before the number? I was under the impression you had to dial "01"+number. This would make "01" the dial code.
Posted:
Fri Feb 18, 2011 12:41 pm
by manny
Hello I have the same situation, I'm in Mexico as well, yes we dial 01 + Number, however in my case I would like to dial some 8 digit local numbers, but if I left the "phone code" in blank (instead 1 by default) for MANUAL CALL, the CLI shows the agent dial 91XXXXXXXX, but I want to be only 9XXXXXXXX
Any suggestion?
Manny
Posted:
Fri Feb 18, 2011 4:01 pm
by williamconley
that was an awful long sentence.
you are saying that you left the phone_code field blank ... but the CLI shows that a "1" is being added to the calls anyway? (91XXXXXXXX?)
Posted:
Mon Feb 28, 2011 10:49 am
by manny
Hello will...
yup! that's exactly what it does. I used the Omit Phone code option in the campaign configuration but if I do so, it disables the phone code field at all, so I can do local calls, but I can't do long distance by using the phone code field.
am I clear? or I'm confusing you
Posted:
Mon Feb 28, 2011 11:23 am
by williamconley
both. above we have a situation where the phone code field was blank, but the system was generating a 1 anyway. now we want to be able to have both with a 1 and without a 1. but at least you stated your need and the reason for it. So we'll move on! LOL
If the system is generating a 1 even though you didn't put a 1 in when you imported, there are several possibilities: You may have inadvertently "overridden" the phone code field during import. You may have put in a dial prefix of 91 instead of just 9 (ie: the phone code isn't actually generating the 1, it's coming from the dial prefix of the campaign).
If you want to use the omit phone code field, the entire campaign would lose that field at once. So you can no longer differentiate between which numbers should have the code and should not within the campaign. You could write a custom dialplan to add or remove the 1 based on the area code if you were willing to work that out (asterisk dial plan has an if/then function allowing conditional operation).
Alternately, you can verify that the database actually does not have a dial code on specific entries, although I am not sure vicidial will appreciate this concept at all.
Another method would be to import with an extra digit on all dial codes (this would allow the extra digit to be removed by :2 on the EXTEN:2 instead of EXTEN:1 in the dial command) and thus keep the phone_code populated but essentially ignoring a single 1 but keeping the 1 if there are two of them.
Many possibilities. Depends on whether you are ready to test import and / or check your database.
SOLVED!!!
Posted:
Sun Mar 20, 2011 3:20 pm
by manny
Ok, this is what I did, changing the dialplan to take out the 9 and the 1 for calls from the agent console, it's working just great, the code is this way now:
- Code: Select all
exten => _919XXXXXXXX,n,Dial(Sip/${EXTEN:3}@sip.provider.mx,90,tTrk)
Thanks Will and community
Care!
Posted:
Sun Mar 20, 2011 3:38 pm
by williamconley
tTrk?
there should be an "o" in there ...
Posted:
Sun Mar 20, 2011 4:23 pm
by manny
Ok, I'll try it, I brought it from my separated Asterisk Box I have. seems integration with vicidial works diferent.
Thanks for your support!
Care
Posted:
Sun Mar 20, 2011 5:01 pm
by williamconley
any time you are about to make a change based on "standard" asterisk ... beware. look for standard vicidial first. vicidial breaks a lot of rules and has some brick walls that will sneak up on you
Re: Changing the "Phone code"
Posted:
Sun Oct 27, 2013 2:14 pm
by bghayad
You were able to keep the Phone code or the Dial Code blank?
And you were able to place manual call using Fast Dial or the Manual Call? Because I can not keep the Dial Code blank if I need to use the Fast Dial.
Regards
Bilal
Re: Changing the "Phone code"
Posted:
Wed May 06, 2015 1:51 pm
by anisTech
Hi everyone,
I want to change default Dial Code 1 to 101.
How to do? Please reply.
Re: Changing the "Phone code"
Posted:
Thu May 07, 2015 8:59 am
by okli
Edit /agc/vicidial.php, making a backup beforehand.
This is for a few months old svn trunk:
Around line 15948:
- Code: Select all
<td align="left"><font class="body_text"><input type="text" size="7" maxlength="10" name="MDDiaLCodE" id="MDDiaLCodE" class="cust_form" value="1" /> <?php echo _QXZ("(This is usually a 1 in the USA-Canada)"); ?></font></td>
Note
value="1", change it to whatever you need to.
Re: Changing the "Phone code"
Posted:
Tue Jun 09, 2015 6:11 am
by lingbe
hello everyone i'm using goautodial 3.3 and i would like to change my phone code 212 from morocco to 00212 because i reach to dial via XLITE but in agent interface that's impossible because it dials automatically 212 instead of 00212 so i tried to change the phone code through the file /agc/vicidial.php i've seen in the forum but this file doesn't exist in my goautodial configuration.Please need some help im novice.Thanks.
Re: Changing the "Phone code"
Posted:
Tue Jun 09, 2015 6:37 am
by mflorell
Just change the prefix in the dialplan for your carrier entries, that would be the simplest option to do what you are describing.
Re: Changing the "Phone code"
Posted:
Tue Jun 09, 2015 6:56 am
by lingbe
the point is when i change entries in the dialplan i loose my database file join to the carrier so i'd like to know if there is a specific file which i can modify the phone code.Thanks.
Re: Changing the "Phone code"
Posted:
Tue Jun 09, 2015 7:42 am
by mflorell
You would have to modify the phone code in several places, including in the database where the timezones are stored.
Could you explain what exactly you mean by a database join with your carrier, I haven't heard of that before.
Re: Changing the "Phone code"
Posted:
Tue Jun 09, 2015 8:20 am
by lingbe
ok so could you explain me how to modify the database where the timezones are stored because as far as im concerned i did it in typing setup,timezone configuration and i choose morocco.Thanks.