pbx*CLI>
-- Remote UNIX connection
-- Remote UNIX connection disconnected
== Setting global variable 'SIPDOMAIN' to 'pbx.example.com'
-- Executing [**620@from-internal:1] Macro("PJSIP/61-0000002a", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("PJSIP/61-0000002a", "TOUCH_MONITOR=1502029717.49") in new stack
-- Executing [s@macro-user-callerid:2] Set("PJSIP/61-0000002a", "AMPUSER=61") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("PJSIP/61-0000002a", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("PJSIP/61-0000002a", "1?Set(__REALCALLERIDNUM=61)") in new stack
-- Executing [s@macro-user-callerid:5] Set("PJSIP/61-0000002a", "AMPUSER=61") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("PJSIP/61-0000002a", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("PJSIP/61-0000002a", "AMPUSERCIDNAME=Gigaset") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("PJSIP/61-0000002a", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("PJSIP/61-0000002a", "AMPUSERCID=61") in new stack
-- Executing [s@macro-user-callerid:10] Set("PJSIP/61-0000002a", "__DIAL_OPTIONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("PJSIP/61-0000002a", "CALLERID(all)="Gigaset" <61>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("PJSIP/61-0000002a", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/61-0000002a", "1?Set(GROUP(concurrency_limit)=61)") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("PJSIP/61-0000002a", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("PJSIP/61-0000002a", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("PJSIP/61-0000002a", "CALLERID(number)=61") in new stack
-- Executing [s@macro-user-callerid:30] Set("PJSIP/61-0000002a", "CALLERID(name)=Gigaset") in new stack
-- Executing [s@macro-user-callerid:31] GotoIf("PJSIP/61-0000002a", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:32] Set("PJSIP/61-0000002a", "CDR(cnam)=Gigaset") in new stack
-- Executing [s@macro-user-callerid:33] Set("PJSIP/61-0000002a", "CDR(cnum)=61") in new stack
-- Executing [s@macro-user-callerid:34] Set("PJSIP/61-0000002a", "CHANNEL(language)=de") in new stack
-- Executing [**620@from-internal:2] Gosub("PJSIP/61-0000002a", "sub-record-check,s,1(out,**620,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("PJSIP/61-0000002a", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("PJSIP/61-0000002a", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("PJSIP/61-0000002a", "NOW=1502029717") in new stack
-- Executing [s@sub-record-check:4] Set("PJSIP/61-0000002a", "__DAY=06") in new stack
-- Executing [s@sub-record-check:5] Set("PJSIP/61-0000002a", "__MONTH=08") in new stack
-- Executing [s@sub-record-check:6] Set("PJSIP/61-0000002a", "__YEAR=2017") in new stack
-- Executing [s@sub-record-check:7] Set("PJSIP/61-0000002a", "__TIMESTR=20170806-162837") in new stack
-- Executing [s@sub-record-check:8] Set("PJSIP/61-0000002a", "__FROMEXTEN=61") in new stack
-- Executing [s@sub-record-check:9] Set("PJSIP/61-0000002a", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("PJSIP/61-0000002a", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("PJSIP/61-0000002a", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("PJSIP/61-0000002a", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("PJSIP/61-0000002a", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("PJSIP/61-0000002a", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("PJSIP/61-0000002a", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("PJSIP/61-0000002a", "Outbound Recording Check from 61 to **620") in new stack
-- Executing [out@sub-record-check:2] Set("PJSIP/61-0000002a", "RECMODE=dontcare") in new stack
-- Executing [out@sub-record-check:3] ExecIf("PJSIP/61-0000002a", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [out@sub-record-check:7] Gosub("PJSIP/61-0000002a", "recordcheck,1(dontcare,out,**620)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/61-0000002a", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/61-0000002a", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("PJSIP/61-0000002a", "") in new stack
-- Executing [out@sub-record-check:8] Return("PJSIP/61-0000002a", "") in new stack
-- Executing [**620@from-internal:3] ExecIf("PJSIP/61-0000002a", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [**620@from-internal:4] Set("PJSIP/61-0000002a", "MOHCLASS=default") in new stack
-- Executing [**620@from-internal:5] Set("PJSIP/61-0000002a", "_NODEST=") in new stack
-- Executing [**620@from-internal:6] Macro("PJSIP/61-0000002a", "dialout-trunk,3,**620,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("PJSIP/61-0000002a", "DIAL_TRUNK=3") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("PJSIP/61-0000002a", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("PJSIP/61-0000002a", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("PJSIP/61-0000002a", "DIAL_NUMBER=**620") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("PJSIP/61-0000002a", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("PJSIP/61-0000002a", "OUTBOUND_GROUP=OUT_3") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("PJSIP/61-0000002a", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("PJSIP/61-0000002a", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("PJSIP/61-0000002a", "DIAL_TRUNK_OPTIONS=T") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("PJSIP/61-0000002a", "outbound-callerid,3") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("PJSIP/61-0000002a", "0?Set(CALLERPRES(name-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("PJSIP/61-0000002a", "0?Set(CALLERPRES(num-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:3] ExecIf("PJSIP/61-0000002a", "0?Set(REALCALLERIDNUM=61)") in new stack
-- Executing [s@macro-outbound-callerid:4] GotoIf("PJSIP/61-0000002a", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,7)
-- Executing [s@macro-outbound-callerid:7] Set("PJSIP/61-0000002a", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("PJSIP/61-0000002a", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] Set("PJSIP/61-0000002a", "TRUNKOUTCID="Asterix" <621>") in new stack
-- Executing [s@macro-outbound-callerid:10] GotoIf("PJSIP/61-0000002a", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,15)
-- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/61-0000002a", "1?Set(CALLERID(all)="Asterix" <621>)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("PJSIP/61-0000002a", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("PJSIP/61-0000002a", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:18] ExecIf("PJSIP/61-0000002a", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:19] ExecIf("PJSIP/61-0000002a", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:20] Set("PJSIP/61-0000002a", "CDR(outbound_cnum)=621") in new stack
-- Executing [s@macro-outbound-callerid:21] Set("PJSIP/61-0000002a", "CDR(outbound_cnam)=Asterix") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("PJSIP/61-0000002a", "1?sub-flp-3,s,1()") in new stack
-- Executing [s@sub-flp-3:1] ExecIf("PJSIP/61-0000002a", "1?Set(TARGET_FLP_3=620)") in new stack
-- Executing [s@sub-flp-3:2] GotoIf("PJSIP/61-0000002a", "1?match") in new stack
-- Goto (sub-flp-3,s,4)
-- Executing [s@sub-flp-3:4] Set("PJSIP/61-0000002a", "DIAL_NUMBER=620") in new stack
-- Executing [s@sub-flp-3:5] Return("PJSIP/61-0000002a", "") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("PJSIP/61-0000002a", "OUTNUM=620") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("PJSIP/61-0000002a", "custom=PJSIP") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("PJSIP/61-0000002a", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("PJSIP/61-0000002a", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("PJSIP/61-0000002a", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/61-0000002a", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("PJSIP/61-0000002a", "0?skipcrm") in new stack
-- Executing [s@macro-dialout-trunk:19] Set("PJSIP/61-0000002a", "__CRM_DIRECTION=OUTBOUND") in new stack
-- Executing [s@macro-dialout-trunk:20] Set("PJSIP/61-0000002a", "__CRM_DESTINATION=620") in new stack
-- Executing [s@macro-dialout-trunk:21] Set("PJSIP/61-0000002a", "__CRM_SOURCE=61") in new stack
-- Executing [s@macro-dialout-trunk:22] AGI("PJSIP/61-0000002a", "sangomacrm.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
-- <PJSIP/61-0000002a>AGI Script sangomacrm.agi completed, returning 0
-- Executing [s@macro-dialout-trunk:23] Set("PJSIP/61-0000002a", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
-- Executing [s@macro-dialout-trunk:24] NoOp("PJSIP/61-0000002a", "CRM Finished") in new stack
-- Executing [s@macro-dialout-trunk:25] GotoIf("PJSIP/61-0000002a", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:26] ExecIf("PJSIP/61-0000002a", "1?Set(CONNECTEDLINE(num,i)=620)") in new stack
-- Executing [s@macro-dialout-trunk:27] ExecIf("PJSIP/61-0000002a", "1?Set(CONNECTEDLINE(name,i)=CID:621)") in new stack
-- Executing [s@macro-dialout-trunk:28] ExecIf("PJSIP/61-0000002a", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)621)") in new stack
-- Executing [s@macro-dialout-trunk:29] GotoIf("PJSIP/61-0000002a", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:30] Dial("PJSIP/61-0000002a", "PJSIP/620@FRITZBOX,300,T") in new stack
-- Called PJSIP/620@FRITZBOX
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:31] NoOp("PJSIP/61-0000002a", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1") in new stack
-- Executing [s@macro-dialout-trunk:32] GotoIf("PJSIP/61-0000002a", "0?continue,1:s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("PJSIP/61-0000002a", "RC=1") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("PJSIP/61-0000002a", "1,1") in new stack
-- Goto (macro-dialout-trunk,1,1)
-- Executing [1@macro-dialout-trunk:1] Goto("PJSIP/61-0000002a", "s-INVALIDNMBR,1") in new stack
-- Goto (macro-dialout-trunk,s-INVALIDNMBR,1)
-- Executing [s-INVALIDNMBR@macro-dialout-trunk:1] NoOp("PJSIP/61-0000002a", "Dial failed due to trunk reporting Address Incomplete - giving up") in new stack
-- Executing [s-INVALIDNMBR@macro-dialout-trunk:2] Progress("PJSIP/61-0000002a", "") in new stack
-- Executing [s-INVALIDNMBR@macro-dialout-trunk:3] Playback("PJSIP/61-0000002a", "ss-noservice,noanswer") in new stack
-- <PJSIP/61-0000002a> Playing 'ss-noservice.ulaw' (language 'de')
> 0x7f1368b17090 -- Probation passed - setting RTP source address to 10.0.1.12:5006
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- Executing [h@from-internal:1] Macro("PJSIP/61-0000002a", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/61-0000002a", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/61-0000002a", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("PJSIP/61-0000002a", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/61-0000002a' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/61-0000002a'
-- PJSIP/61-0000002a Internal Gosub(crm-hangup,s,1) start
-- Executing [s@crm-hangup:1] NoOp("PJSIP/61-0000002a", "Sending Hangup to CRM") in new stack
-- Executing [s@crm-hangup:2] NoOp("PJSIP/61-0000002a", "HANGUP CAUSE: 1") in new stack
-- Executing [s@crm-hangup:3] ExecIf("PJSIP/61-0000002a", "0?Set(__CRM_VOICEMAIL=)") in new stack
-- Executing [s@crm-hangup:4] NoOp("PJSIP/61-0000002a", "MASTER CHANNEL: 1502029717.49 = 1502029717.49") in new stack
-- Executing [s@crm-hangup:5] GotoIf("PJSIP/61-0000002a", "0?return") in new stack
-- Executing [s@crm-hangup:6] Set("PJSIP/61-0000002a", "__CRM_HANGUP=1") in new stack
-- Executing [s@crm-hangup:7] AGI("PJSIP/61-0000002a", "sangomacrm.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
-- <PJSIP/61-0000002a>AGI Script sangomacrm.agi completed, returning 0
-- Executing [s@crm-hangup:8] Return("PJSIP/61-0000002a", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/61-0000002a'
-- PJSIP/61-0000002a Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- Remote UNIX connection
-- Remote UNIX connection disconnected
pbx*CLI>