a slight misunderstanding between you, asterisk, and the world regarding phone numbers and phone codes and dial prefixes.
But before we begin, we have this announcement to make you feel at home (everyone gets this until they comply, LOL):
1) Welcome to the Party!

2) As you are obviously new here, I have some suggestions to help us all help you:
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. If your installation is "Hosted" list the site name of the host.
If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.
Similar to This:
Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600
3) Back to our regularly scheduled programming:
phone numbers in the UK have 10 digits. the zero is NOT part of the phone number. This can be evidenced by the fact that if *I* were to call 011441765604002, I would be connected with 1765604002 which is a valid number. But if I were to dial 0114401765604002, I would NOT be connected to 01765604002, the call would fail. I have to remove the "0" and add the "01144" because the "011" means "international!" and the "44" means "UK!". Thus the "0" is a code that within the UK means "this call is meant to be connected HERE, it is not international". In the US, this code is a "1".
So when you load the numbers, you should be loading 0 as the "dial code" and 1423223489 as the phone number. Unless you are not able to call this number "domestically" and have to dial an internation dial string in front of the number. In that case, you would load the entire international string as the dial code. If, for instance, you need to dial "01144" before "1765604002", then 01144 would be the dial code.
Exceptions for complicated people or programmers:
It is also possible to have the phone number "manipulated" during the call in just about any fashion you can imagine. For instance:
Lead information:
Dial Code: 0 (on the lead directly in each csv record, or "lead code override" during lead upload)
Phone Number: 1423223489
Campaign Information:
Dial Prefix: 9
Will result in: 901423223489
The "dial" line of the dialplan, with the "exten" changed to _90X. to be sure to ONLY catch those numbers starting with "90" from the above setup:
- Code: Select all
exten => _90X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _90X.,2,Dial(SIP/01144${EXTEN:2}@SIP01,,tTo)
exten => _90X.,3,Hangup
This will remove the 9 and the 0, and add the country code.
All sorts of things can be done.
