Changing the "Phone code"

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Changing the "Phone code"

Postby manny » Fri Feb 11, 2011 7:20 pm

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!
manny
 
Posts: 47
Joined: Wed Feb 09, 2011 12:12 am
Location: Villa Corona MEX

Postby williamconley » Fri Feb 11, 2011 9:20 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby manny » Fri Feb 18, 2011 12:41 pm

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
manny
 
Posts: 47
Joined: Wed Feb 09, 2011 12:12 am
Location: Villa Corona MEX

Postby williamconley » Fri Feb 18, 2011 4:01 pm

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?)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby manny » Mon Feb 28, 2011 10:49 am

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
manny
 
Posts: 47
Joined: Wed Feb 09, 2011 12:12 am
Location: Villa Corona MEX

Postby williamconley » Mon Feb 28, 2011 11:23 am

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. :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

SOLVED!!!

Postby manny » Sun Mar 20, 2011 3:20 pm

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!
manny
 
Posts: 47
Joined: Wed Feb 09, 2011 12:12 am
Location: Villa Corona MEX

Postby williamconley » Sun Mar 20, 2011 3:38 pm

tTrk?

there should be an "o" in there ...
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby manny » Sun Mar 20, 2011 4:23 pm

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
manny
 
Posts: 47
Joined: Wed Feb 09, 2011 12:12 am
Location: Villa Corona MEX

Postby williamconley » Sun Mar 20, 2011 5:01 pm

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 ;)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Changing the "Phone code"

Postby bghayad » Sun Oct 27, 2013 2:14 pm

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
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm

Re: Changing the "Phone code"

Postby anisTech » Wed May 06, 2015 1:51 pm

Hi everyone,
I want to change default Dial Code 1 to 101.

How to do? Please reply.
anisTech
 
Posts: 1
Joined: Wed May 06, 2015 1:44 pm

Re: Changing the "Phone code"

Postby okli » Thu May 07, 2015 8:59 am

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" />&nbsp; <?php echo _QXZ("(This is usually a 1 in the USA-Canada)"); ?></font></td>
Note value="1", change it to whatever you need to.
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Re: Changing the "Phone code"

Postby lingbe » Tue Jun 09, 2015 6:11 am

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.
lingbe
 
Posts: 3
Joined: Tue Jun 09, 2015 5:49 am

Re: Changing the "Phone code"

Postby mflorell » Tue Jun 09, 2015 6:37 am

Just change the prefix in the dialplan for your carrier entries, that would be the simplest option to do what you are describing.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Changing the "Phone code"

Postby lingbe » Tue Jun 09, 2015 6:56 am

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.
lingbe
 
Posts: 3
Joined: Tue Jun 09, 2015 5:49 am

Re: Changing the "Phone code"

Postby mflorell » Tue Jun 09, 2015 7:42 am

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.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Changing the "Phone code"

Postby lingbe » Tue Jun 09, 2015 8:20 am

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.
lingbe
 
Posts: 3
Joined: Tue Jun 09, 2015 5:49 am


Return to Support

Who is online

Users browsing this forum: No registered users and 76 guests