mflorell wrote:You can use the commented-out section of the default dialplan at the top that is specifically for Canadian use, you have to run the calls through a loopback to get it to work, but we have set it up dozens of times.
Hi thank you for the lead. I've taken the following steps:
- left my actual carrier configured as TESTSIPTRUNK and marked "active", but removed its dialplan entry.
- added in a new carrier of TESTCID with following dialplan:
exten => _91NXXNXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(${TRUNKloop}/888${EXTEN:2},55,o)
exten => _91NXXNXXXXXX,3,Hangup
exten => 888NXXNXXXXXX,1,Goto(loopback-no-log,91${EXTEN:3},1)
- uncommented the following / modified it to route through my real carrier TESTSIPTRUNK
[loopback-no-log] context
exten => _91NXXNXXXXXX,1,Set(CALLERID(name)="Acme Widgets")
exten => _91NXXNXXXXXX,1,AGI(agi-CANADA_PRI_CIDname.agi)
exten => _91NXXNXXXXXX,n,Dial(${TESTSIPTRUNK}/${EXTEN:1},,To)
exten => _91NXXNXXXXXX,n,Hangup
I've also uncommented
[default] context
exten => _888NXXNXXXXXX,1,Goto(loopback-no-log,91${EXTEN:3},1)
This appears to work. I'm able to change the name and number which is great! Also, in a small tweak to /usr/src/astguiclient/trunk/agi/agi-CANADA_PRI_CIDname.agi I have made it able to send PRIVATE / UNKNOWN CID's. I intend to clean this up and send a patch if you are interested...
Just have one more issue! The calls go out, and connect fine thru this path - BUT as soon as the customer Hangs up, or my agents press the Hangup button their actual extension is hung up as well, losing the original conference which basically means they have to log back in again.
I've tried commenting out the Hangup in both the TESTCID dialplan and also in extensions.conf - but neither works. This is all I see in the logs -- any help would be greatly appreciated this would be my last issue before getting full go ahead approval on VICI
[Oct 14 15:52:29] == Spawn extension (default, 8600052, 1) exited non-zero on 'IAX2/x2iax-2641'
[Oct 14 15:52:29] -- Executing [h@default:1] DeadAGI("IAX2/x2iax-2641", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Oct 14 15:52:29] -- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Oct 14 15:52:29] -- Hungup 'IAX2/x2iax-2641'
VICIBOX ISO INSTALL 3.1.15 | RUNNING VERSION: 2.6-352c BUILD: 120914-1357 | ASTERISK 1.4.39.2-vici | NO FANCY PHONE CARDS | POS INTEL MACHINE (testing)