kddacraker wrote:us 1XXXXXXXXXX
UK 44XXXXXXXXXX
A lesson in "dial pattern"
you have a "dial code" of 1 for "US" followed by the 10 digit number (which may or may NOT be a phone number. phone numbers in the US are NXXNXXXXXX. the "N" represents a digit that is NOT 0 or 1, since the area code and prefix of a US phone number cannot start with 0 or 1. No country code given, which implies you are dialing TO the US and FROM the US, so you don't need a country code.
Moving right along.
You have a "country code" of "44" for uk followed by a 10 digit number.
now:
USA I need to dial 12127773456 and UK 4412127773456
here you would appear to have a 1NXXNXXXXXX properly formatted phone number with a 1 prefix (standard format for most voip carriers, or for pstn dialing for that matter if the call is not local).
but for the UK number you have 441NXXNXXXXXX which would appear to be a country code, then a dial code, then a 10 digit phone number.
the dial code should not be there for the uk number (certainly not AFTER the country code) unless your provider requires it (doubtful), if you give us the requirement as given by your provider we can help you out there. (there is a normal uk sample in extensions.conf).
next we have "dial prefix". this is NOT related to the "dial code" "country code" or "phone number". The dial prefix in vicidial is used to identify the TRUNK/CARRIER, and is then discarded (as it has completed its task).
in vicidial, in the definition of the campaign, you will generally define the "dial prefix" as 9 (or some other number, we're doing 9 right now, work with me): so for a US number vicidial will dial the 9 (from the campaign) then the 1 (from the dial code field of the number from your "list" during import) then the 10 digit phone number. this will result in 912127771515.
Then your dial plan will have "EXTEN:1" in it, which will DISCARD (:1) the first digit (9) and result in 12127771515 being sent through to your provider. this is a match with _1NXXNXXXXXX so if that is what your provider expects, it's a hit. if not ... you need to modify your dial plan to match it.
if, however, you use a "non-prefix" dial plan (no :1, nothing is discarded) that uses "X." to allow matching any length of phone number, you will not be able to differentiate between carriers. that's fine, of course, if you only have one carrier and have no need to validate the length of your phone numbers.
there are samples that require less "thought" and directions in the manual for standard length phone number. i've found that creating an exten pattern for each country (by including the country code in the dial plan such as the sample uk supplied in extensions.conf) is very helpful as it allows specifying the carrier for each country individually and will NOT allow dialing a country not specified (so your manager doesn't load 200,000 numbers for chile and spend a fortune in 3 hours when you're not looking at the prices first!).