Page 1 of 1

DIALPLAN AND SIP SETTINGS BASICS HELP

PostPosted: Tue Dec 03, 2013 7:25 am
by JOHN HASTINGS
Hello friends,
Kindly help us newbies in this field with the explanation of each term used in the dial plan so that we can sort the problems out with enough understanding of what and why are we doing
exten => _91XXXXXXXXXX,2(SIP/{EXTEN:some number}@[SIP ACCOUNT NAME],55,tTo
can any one explain each term being used here like why _ is used? then significance of 91 and whatever is in the brackets.

THANKS

Re: DIALPLAN AND SIP SETTINGS BASICS HELP

PostPosted: Wed Dec 04, 2013 9:57 am
by geoff3dmg
Dialplan stuff is basic to asterisk rather than something Vicidial has introduced. Even more so carrier dialplan configurations. There are some very good articles on the Asterisk wiki that cover these and more concepts.

https://wiki.asterisk.org/wiki/display/ ... ndamentals

In particular read the section on extensions and the Dial application.

Re: DIALPLAN AND SIP SETTINGS BASICS HELP

PostPosted: Wed Dec 04, 2013 8:28 pm
by williamconley
1) you missed the asterisk command "dial" which is expected to be part of that line.

2) viewtopic.php?f=7&t=8916&hilit=+91NXXNXXXXXX
viewtopic.php?f=4&t=10397&hilit=+91NXXNXXXXXX
viewtopic.php?f=4&t=16419&hilit=+91NXXNXXXXXX

3)
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.