Page 1 of 1

Switch2Voip dial plan

PostPosted: Wed Nov 13, 2013 3:34 pm
by switch2voip
For the multiple persons that have requested the dial plan, this is what has been working for others.

Your USA dialplan should look something like this:
exten => _91.,1,Set(callerid(num)=+1XXXXXXXXXX)
exten => _91.,2,Set(callerid(ani)=Phone number)
exten => _91.,3,AGI(agi://127.0.0.1:4577/call_log)
exten => _91.,4,Dial(sip/${EXTEN:1}@Switch2Voip,55,o)
exten => _91,5,Hangup

Re: Switch2Voip dial plan

PostPosted: Wed Nov 13, 2013 10:23 pm
by williamconley
I beg to differ. Two mistakes ...

1) "_91." is not a us dialplan. use "_91NXXNXXXXXX" instead (for all lines, of course).
2) line 5, you missed a "." after 91 so it is not the same "extension" as the others and will never be used.

Next: It is NOT advisable to set the callerid num or ani in the dialplan entry. In some versions of Vicidial this will break the call completely.

Why do you suggest setting the ANI? Is this expected to be for a single VOIP carrier? (IE: Yours! Instead of "universal"?). If so, it would be good to mention the specific carrier that this is meant for. Most do not require and may not accept the "+1" in front of the callerid number. And many users may not know to replace the X's with their phone number!

We usually suggest this as a universal dialplan entry:

Code: Select all
exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,n,Dial(${DIAL9TRUNK}/${EXTEN:1},,To)
exten => _91NXXNXXXXXX,n,Hangup


And it should be accompanied by a Globals String:

Code: Select all
DIAL9TRUNK=SIP/carriername

DIAL9TRUNK is an example, you could also use DIAL8TRUNK and DIAL7TRUNK ... just be sure not to duplicate them across carriers unless you Know what you are Doing. Be sure the Globals String DIAL9TRUNK matches the variable used in line two of the dialplan entry ${DIAL9TRUNK}

Replace "carriername" with the value inside the brackets of the Account Entry. IE: [carriername] in account entry should match SIP/carriername of Globals String.