1) you missed the asterisk command "dial" which is expected to be part of that line.
2)
viewtopic.php?f=7&t=8916&hilit=+91NXXNXXXXXXviewtopic.php?f=4&t=10397&hilit=+91NXXNXXXXXXviewtopic.php?f=4&t=16419&hilit=+91NXXNXXXXXX3)
- Code: Select all
exten => _91NXXNXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},,To)
exten => This is required to define any extension in extensions.conf
_91NXXNXXXXXX_ = this is a "pattern" not a literal number. Thus any special characters (such as "X" or "N" will be interpreted as pattern definitions)
1 = US dial code (domestic long distance indicator). This number is supplied by the "dial code" of each lead.
NXX = Area Code (may not begin with 0 or 1, which is what the "N" is for)
NXX = Exchange (also may not begin with 0 or 1)
XXXX = Number (area/exchange/number constitute a 10 digit US phone number)
2 = 2nd line of the extensions "program" (each extension is a program and may contain multiple lines, this is the 2nd line of the "_91NXXNXXXXXX" extension program)
Dial = Application being executed on this line of the extension program
${TRUNKX} = the $ and { } cause this to be a Variable. It must be declared before this line is executed. This is best done in the "Global Variable" field. It can also be replaced with a literal (for instance "Dial(SIP/carrier/" would use a sip account named [carrier] in the sip.conf or any included file)
${EXTEN:1} = Another variable, but this one has ":1" which will delete the first digit of the string. In this case that is the "9" which is not expected to be sent to the carrier. The 9 is only used to bring this call to this extension to be sent to this carrier, then is discarded as having "done its job". This digit is supplied by the "Dial Prefix" of the campaign.
To = "Switches" which determine technical behavior of the call once generated. Look 'em up, but ALWAYS include the "o" in Vicidial as it is required.