Here is the output of when the call works using
[test_dial_status]
exten => _X.,1,Goto(from-internal,${EXTEN},1)
It keeps coming back to the issue where as soon as a dial plan runs a stasis the channel hangs up on stasis completion.
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [2345@test_dial_status:1] Goto(“SIP/1234-00000004”, “from-internal,2345,1”) in new stack
– Goto (from-internal,2345,1)
– Executing [2345@from-internal:1] Set(“SIP/1234-00000004”, “__RINGTIMER=15”) in new stack
– Executing [2345@from-internal:2] Macro(“SIP/1234-00000004”, “exten-vm,novm,2345,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“SIP/1234-00000004”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/1234-00000004”, “TOUCH_MONITOR=1478820939.4”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/1234-00000004”, “AMPUSER=1234”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/1234-00000004”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/1234-00000004”, “1?Set(REALCALLERIDNUM=1234)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/1234-00000004”, “AMPUSER=1234”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/1234-00000004”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/1234-00000004”, “AMPUSERCIDNAME=Test User 1”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/1234-00000004”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/1234-00000004”, “AMPUSERCID=1234”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/1234-00000004”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/1234-00000004”, “CALLERID(all)=“Test User 1” <1234>”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“SIP/1234-00000004”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/1234-00000004”, “0?Set(GROUP(concurrency_limit)=1234)”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“SIP/1234-00000004”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:15] Set(“SIP/1234-00000004”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:16] GotoIf(“SIP/1234-00000004”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,27)
– Executing [s@macro-user-callerid:27] Set(“SIP/1234-00000004”, “CALLERID(number)=1234”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/1234-00000004”, “CALLERID(name)=Test User 1”) in new stack
– Executing [s@macro-user-callerid:29] Set(“SIP/1234-00000004”, “CDR(cnum)=1234”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/1234-00000004”, “CDR(cnam)=Test User 1”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/1234-00000004”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“SIP/1234-00000004”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/1234-00000004”, “__EXTTOCALL=2345”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/1234-00000004”, “__PICKUPMARK=2345”) in new stack
– Executing [s@macro-exten-vm:5] Set(“SIP/1234-00000004”, “RT=”) in new stack
– Executing [s@macro-exten-vm:6] Gosub(“SIP/1234-00000004”, “sub-record-check,s,1(exten,2345,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/1234-00000004”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/1234-00000004”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/1234-00000004”, “NOW=1478820940”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/1234-00000004”, “__DAY=11”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/1234-00000004”, “__MONTH=11”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/1234-00000004”, “__YEAR=2016”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/1234-00000004”, “__TIMESTR=20161111-103540”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/1234-00000004”, “__FROMEXTEN=1234”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/1234-00000004”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/1234-00000004”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/1234-00000004”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/1234-00000004”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/1234-00000004”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/1234-00000004”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/1234-00000004”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [exten@sub-record-check:1] NoOp(“SIP/1234-00000004”, “Exten Recording Check between 1234 and 2345”) in new stack
– Executing [exten@sub-record-check:2] Set(“SIP/1234-00000004”, “CALLTYPE=internal”) in new stack
– Executing [exten@sub-record-check:3] ExecIf(“SIP/1234-00000004”, “0?Set(CALLTYPE=)”) in new stack
– Executing [exten@sub-record-check:4] Set(“SIP/1234-00000004”, “CALLEE=dontcare”) in new stack
– Executing [exten@sub-record-check:5] ExecIf(“SIP/1234-00000004”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [exten@sub-record-check:6] GotoIf(“SIP/1234-00000004”, “0?callee”) in new stack
– Executing [exten@sub-record-check:7] GotoIf(“SIP/1234-00000004”, “1?caller”) in new stack
– Goto (sub-record-check,exten,13)
– Executing [exten@sub-record-check:13] Set(“SIP/1234-00000004”, “RECMODE=dontcare”) in new stack
– Executing [exten@sub-record-check:14] ExecIf(“SIP/1234-00000004”, “0?Set(RECMODE=dontcare)”) in new stack
– Executing [exten@sub-record-check:15] ExecIf(“SIP/1234-00000004”, “1?Set(RECMODE=dontcare)”) in new stack
– Executing [exten@sub-record-check:16] Gosub(“SIP/1234-00000004”, “recordcheck,1(dontcare,internal,2345)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/1234-00000004”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/1234-00000004”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/1234-00000004”, “”) in new stack
– Executing [exten@sub-record-check:17] Return(“SIP/1234-00000004”, “”) in new stack
– Executing [s@macro-exten-vm:7] GotoIf(“SIP/1234-00000004”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,13)
– Executing [s@macro-exten-vm:13] GosubIf(“SIP/1234-00000004”, “0?clrheader,1()”) in new stack
– Executing [s@macro-exten-vm:14] Macro(“SIP/1234-00000004”, “dial-one,Ttr,2345”) in new stack
– Executing [s@macro-dial-one:1] Set(“SIP/1234-00000004”, “DEXTEN=2345”) in new stack
– Executing [s@macro-dial-one:2] Set(“SIP/1234-00000004”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:3] GosubIf(“SIP/1234-00000004”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:4] GosubIf(“SIP/1234-00000004”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:5] GotoIf(“SIP/1234-00000004”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [s@macro-dial-one:8] GotoIf(“SIP/1234-00000004”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:9] GotoIf(“SIP/1234-00000004”, “0?continue”) in new stack
– Executing [s@macro-dial-one:10] Set(“SIP/1234-00000004”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“SIP/1234-00000004”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [s@macro-dial-one:23] GotoIf(“SIP/1234-00000004”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [s@macro-dial-one:25] GotoIf(“SIP/1234-00000004”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:26] GosubIf(“SIP/1234-00000004”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“SIP/1234-00000004”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“SIP/1234-00000004”, “DEVICES=2345”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“SIP/1234-00000004”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“SIP/1234-00000004”, “0?Set(DEVICES=345)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“SIP/1234-00000004”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“SIP/1234-00000004”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“SIP/1234-00000004”, “THISDIAL=SIP/2345”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“SIP/1234-00000004”, “1?zap2dahdi,1()”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“SIP/1234-00000004”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“SIP/1234-00000004”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“SIP/1234-00000004”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“SIP/1234-00000004”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“SIP/1234-00000004”, “THISPART2=SIP/2345”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“SIP/1234-00000004”, “0?Set(THISPART2=DAHDI/2345)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“SIP/1234-00000004”, “NEWDIAL=SIP/2345&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“SIP/1234-00000004”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“SIP/1234-00000004”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“SIP/1234-00000004”, “THISDIAL=SIP/2345”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“SIP/1234-00000004”, “”) in new stack
– Executing [dstring@macro-dial-one:9] GotoIf(“SIP/1234-00000004”, “1?docheck”) in new stack
– Goto (macro-dial-one,dstring,12)
– Executing [dstring@macro-dial-one:12] GotoIf(“SIP/1234-00000004”, “0?skipset”) in new stack
– Executing [dstring@macro-dial-one:13] Set(“SIP/1234-00000004”, “DSTRING=SIP/2345&”) in new stack
– Executing [dstring@macro-dial-one:14] Set(“SIP/1234-00000004”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:15] GotoIf(“SIP/1234-00000004”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:16] ExecIf(“SIP/1234-00000004”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:17] Set(“SIP/1234-00000004”, “DSTRING=SIP/2345”) in new stack
– Executing [dstring@macro-dial-one:18] Return(“SIP/1234-00000004”, “”) in new stack
– Executing [s@macro-dial-one:27] GotoIf(“SIP/1234-00000004”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GotoIf(“SIP/1234-00000004”, “0?skiptrace”) in new stack
– Executing [s@macro-dial-one:29] GosubIf(“SIP/1234-00000004”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“SIP/1234-00000004”, “DB(CALLTRACE/2345)=1234”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“SIP/1234-00000004”, “”) in new stack
– Executing [s@macro-dial-one:30] Set(“SIP/1234-00000004”, “D_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dial-one:31] NoOp(“SIP/1234-00000004”, "Blind Transfer: , Attended Transfer: , User: 1234, Alert Info: ") in new stack
– Executing [s@macro-dial-one:32] ExecIf(“SIP/1234-00000004”, “1?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:33] ExecIf(“SIP/1234-00000004”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:34] ExecIf(“SIP/1234-00000004”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:35] GosubIf(“SIP/1234-00000004”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [s@macro-dial-one:36] ExecIf(“SIP/1234-00000004”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:37] GosubIf(“SIP/1234-00000004”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:38] Set(“SIP/1234-00000004”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:39] Set(“SIP/1234-00000004”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:40] GotoIf(“SIP/1234-00000004”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:41] GotoIf(“SIP/1234-00000004”, “0?godial”) in new stack
– Executing [s@macro-dial-one:42] Gosub(“SIP/1234-00000004”, “sub-presencestate-display,s,1(2345)”) in new stack
– Executing [s@sub-presencestate-display:1] Goto(“SIP/1234-00000004”, “state-not_set,1”) in new stack
– Goto (sub-presencestate-display,state-not_set,1)
– Executing [state-not_set@sub-presencestate-display:1] Set(“SIP/1234-00000004”, “PRESENCESTATE_DISPLAY=”) in new stack
– Executing [state-not_set@sub-presencestate-display:2] Return(“SIP/1234-00000004”, “”) in new stack
– Executing [s@macro-dial-one:43] Set(“SIP/1234-00000004”, “CONNECTEDLINE(name,i)=Test User 2”) in new stack
– Executing [s@macro-dial-one:44] Set(“SIP/1234-00000004”, “CONNECTEDLINE(num)=2345”) in new stack
– Executing [s@macro-dial-one:45] Set(“SIP/1234-00000004”, “D_OPTIONS=TtrI”) in new stack
– Executing [s@macro-dial-one:46] Macro(“SIP/1234-00000004”, “dialout-one-predial-hook,”) in new stack
– Executing [s@macro-dialout-one-predial-hook:1] MacroExit(“SIP/1234-00000004”, “”) in new stack
– Executing [s@macro-dial-one:47] Dial(“SIP/1234-00000004”, “SIP/2345,TtrIb(func-apply-sipheaders^s^1)”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– SIP/2345-00000005 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] NoOp(“SIP/2345-00000005”, “Applying SIP Headers to channel”) in new stack
– Executing [s@func-apply-sipheaders:2] Set(“SIP/2345-00000005”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:3] While(“SIP/2345-00000005”, “0”) in new stack
– Jumping to priority 7
– Executing [s@func-apply-sipheaders:8] Return(“SIP/2345-00000005”, “”) in new stack
== Spawn extension (from-internal, 2345, 1) exited non-zero on ‘SIP/2345-00000005’
– SIP/2345-00000005 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called SIP/2345
– Connected line update to SIP/1234-00000004 prevented.
– SIP/2345-00000005 is ringing