IAX2 trunked extensions drop calls on HANGUP CUSTOMER
Posted: Tue Oct 16, 2012 1:50 pm
I seem to be at the very end of my integration but have one very big issue. When my users who are over an IAX2 trunk push "HANGUP CUSTOMER" it drops both the call to the customer and the call to their phone -- obviously making the whole system not really work out. The IAX trunk works fine as the calls are able to go,b ut its just doing this drop. Is this something in a dialplan somewhere causing this, or is there a setting I can change to fix it ? It really seems to be my final issue. This ONLY happens on my trunked extensions. Please help I'm so close.
If you look in the log it is showing that its intentionally issuing a [Oct 16 11:43:20] -- Hungup 'IAX2/x2iax-19432']. My phones connected with SIP do not have this issue. Here are the extensions' entries that is auto generated:
; Phones direct dial extensions:
exten => 299,1,Dial(IAX2/x2iax/299|60|)
exten => 299,2,Goto(default,85026666666666299,1)
exten => 201,1,Dial(SIP/201|60|)
exten => 201,2,Goto(default,85026666666666201,1)
The IAX.conf entry:
[x2iax/299]
username=x2iax/299
secret=test
accountcode=x2iax/299
callerid="" <604xxxxxxx>
mailbox=299
requirecalltoken=no
context=default
type=friend
auth=md5
host=dynamic
My customer iax.conf entry:
register => collections:test@10.2.3.10
; x1's user to connect
[collections]
type=user
auth=md5
secret=test
host=10.2.3.10
; setup a trunk to x1
[x2iax]
type=peer
host=10.2.3.10
auth=md5
qualify=yes
username=collections
secret=test
trunk=yes
Oct 16 11:43:20] == Spawn extension (default, 916047635825, 2) exited non-zero on 'Local/8600052@default-f437,1'
[Oct 16 11:43:20] -- Executing [h@default:1] DeadAGI("Local/8600052@default-f437,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------") in new stack
[Oct 16 11:43:20] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Oct 16 11:43:20] == Spawn extension (default, 8600052, 1) exited non-zero on 'Local/8600052@default-f437,2'
[Oct 16 11:43:20] -- Executing [h@default:1] DeadAGI("Local/8600052@default-f437,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Oct 16 11:43:20] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Oct 16 11:43:20] == Parsing '/etc/asterisk/manager.conf': [Oct 16 11:43:20] Found
[Oct 16 11:43:20] -- Hungup 'DAHDI/pseudo-2092109395'
[Oct 16 11:43:20] == Spawn extension (default, 8600052, 1) exited non-zero on 'IAX2/x2iax-19432'
[Oct 16 11:43:20] -- Executing [h@default:1] DeadAGI("IAX2/x2iax-19432", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Oct 16 11:43:20] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Oct 16 11:43:20] -- Hungup 'IAX2/x2iax-19432'
If you look in the log it is showing that its intentionally issuing a [Oct 16 11:43:20] -- Hungup 'IAX2/x2iax-19432']. My phones connected with SIP do not have this issue. Here are the extensions' entries that is auto generated:
; Phones direct dial extensions:
exten => 299,1,Dial(IAX2/x2iax/299|60|)
exten => 299,2,Goto(default,85026666666666299,1)
exten => 201,1,Dial(SIP/201|60|)
exten => 201,2,Goto(default,85026666666666201,1)
The IAX.conf entry:
[x2iax/299]
username=x2iax/299
secret=test
accountcode=x2iax/299
callerid="" <604xxxxxxx>
mailbox=299
requirecalltoken=no
context=default
type=friend
auth=md5
host=dynamic
My customer iax.conf entry:
register => collections:test@10.2.3.10
; x1's user to connect
[collections]
type=user
auth=md5
secret=test
host=10.2.3.10
; setup a trunk to x1
[x2iax]
type=peer
host=10.2.3.10
auth=md5
qualify=yes
username=collections
secret=test
trunk=yes
Oct 16 11:43:20] == Spawn extension (default, 916047635825, 2) exited non-zero on 'Local/8600052@default-f437,1'
[Oct 16 11:43:20] -- Executing [h@default:1] DeadAGI("Local/8600052@default-f437,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------") in new stack
[Oct 16 11:43:20] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Oct 16 11:43:20] == Spawn extension (default, 8600052, 1) exited non-zero on 'Local/8600052@default-f437,2'
[Oct 16 11:43:20] -- Executing [h@default:1] DeadAGI("Local/8600052@default-f437,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Oct 16 11:43:20] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Oct 16 11:43:20] == Parsing '/etc/asterisk/manager.conf': [Oct 16 11:43:20] Found
[Oct 16 11:43:20] -- Hungup 'DAHDI/pseudo-2092109395'
[Oct 16 11:43:20] == Spawn extension (default, 8600052, 1) exited non-zero on 'IAX2/x2iax-19432'
[Oct 16 11:43:20] -- Executing [h@default:1] DeadAGI("IAX2/x2iax-19432", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Oct 16 11:43:20] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Oct 16 11:43:20] -- Hungup 'IAX2/x2iax-19432'