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.