We have a recent FreePBX installation, hooked up to an SIP trunk via pjsip. Our IVR is set to call a Ring Group (a simple memoryhunt on 3 extensions) on timeout. When an external caller hangs up during the announcement or during the following waiting period, the Ring Group still gets called. When I answer one of those “zombie” calls, there’s just silence.
However, when a call is connected (extension to external, both incoming and outgoing) and the external party hangs up, the call is properly terminated right away. That means, there seems to be no general issue recognizing when an external caller hangs up.
My best guess is it has to do with the IVR waiting for a touchtone, but I just don’t have the experience to dig into it deeper. Any help is appreciated.
Thanks,
Stefan
Current PBX Version: 14.0.2.10
Current System Version: 12.7.4-1803-1.sng7
Current Asterisk Version: 13.19.1
First half of full log of a test call (hung up within 2 seconds after the call was established) with IPs anonymized to X.X.X.X, external caller to +19876543210, PBX number to +10123456789:
[2018-04-18 14:09:40] VERBOSE[15414] pbx_variables.c: Setting global variable 'SIPDOMAIN' to 'X.X.X.X'
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:1] Set("PJSIP/SipTrunk-00000020", "__DIRECTION=INBOUND") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:2] Gosub("PJSIP/SipTrunk-00000020", "sub-record-check,s,1(in,+19876543210,dontcare)") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:1] GotoIf("PJSIP/SipTrunk-00000020", "0?initialized") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:2] Set("PJSIP/SipTrunk-00000020", "__REC_STATUS=INITIALIZED") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:3] Set("PJSIP/SipTrunk-00000020", "NOW=1524074980") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:4] Set("PJSIP/SipTrunk-00000020", "__DAY=18") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:5] Set("PJSIP/SipTrunk-00000020", "__MONTH=04") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:6] Set("PJSIP/SipTrunk-00000020", "__YEAR=2018") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:7] Set("PJSIP/SipTrunk-00000020", "__TIMESTR=20180418-140940") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:8] Set("PJSIP/SipTrunk-00000020", "__FROMEXTEN=unknown") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:9] Set("PJSIP/SipTrunk-00000020", "__MON_FMT=wav") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:10] NoOp("PJSIP/SipTrunk-00000020", "Recordings initialized") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:11] ExecIf("PJSIP/SipTrunk-00000020", "0?Set(ARG3=dontcare)") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:12] Set("PJSIP/SipTrunk-00000020", "REC_POLICY_MODE_SAVE=") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:13] ExecIf("PJSIP/SipTrunk-00000020", "0?Set(REC_STATUS=NO)") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:14] GotoIf("PJSIP/SipTrunk-00000020", "2?checkaction") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (sub-record-check,s,17)
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:17] GotoIf("PJSIP/SipTrunk-00000020", "1?sub-record-check,in,1") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (sub-record-check,in,1)
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [in@sub-record-check:1] NoOp("PJSIP/SipTrunk-00000020", "Inbound Recording Check to +19876543210") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [in@sub-record-check:2] Set("PJSIP/SipTrunk-00000020", "FROMEXTEN=unknown") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [in@sub-record-check:3] ExecIf("PJSIP/SipTrunk-00000020", "12?Set(FROMEXTEN=+10123456789)") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [in@sub-record-check:4] Gosub("PJSIP/SipTrunk-00000020", "recordcheck,1(dontcare,in,+19876543210)") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/SipTrunk-00000020", "Starting recording check against dontcare") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [recordcheck@sub-record-check:2] Goto("PJSIP/SipTrunk-00000020", "dontcare") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (sub-record-check,recordcheck,3)
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [recordcheck@sub-record-check:3] Return("PJSIP/SipTrunk-00000020", "") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [in@sub-record-check:5] Return("PJSIP/SipTrunk-00000020", "") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:3] Gosub("PJSIP/SipTrunk-00000020", "app-blacklist-check,s,1()") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@app-blacklist-check:1] GotoIf("PJSIP/SipTrunk-00000020", "0?blacklisted") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@app-blacklist-check:2] Set("PJSIP/SipTrunk-00000020", "CALLED_BLACKLIST=1") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@app-blacklist-check:3] Return("PJSIP/SipTrunk-00000020", "") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:4] Set("PJSIP/SipTrunk-00000020", "__FROM_DID=+19876543210") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:5] Set("PJSIP/SipTrunk-00000020", "CDR(did)=+19876543210") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:6] ExecIf("PJSIP/SipTrunk-00000020", "1 ?Set(CALLERID(name)=+10123456789)") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:7] Set("PJSIP/SipTrunk-00000020", "__MOHCLASS=") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:8] Ringing("PJSIP/SipTrunk-00000020", "") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:9] Set("PJSIP/SipTrunk-00000020", "__RINGINGSENT=TRUE") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:10] Set("PJSIP/SipTrunk-00000020", "__REVERSAL_REJECT=FALSE") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:11] GotoIf("PJSIP/SipTrunk-00000020", "1?post-reverse-charge") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (from-pstn,+19876543210,13)
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:13] NoOp("PJSIP/SipTrunk-00000020", "") in new stack
[2018-04-18 14:09:40] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:14] Wait("PJSIP/SipTrunk-00000020", "3") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:15] Set("PJSIP/SipTrunk-00000020", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:16] Set("PJSIP/SipTrunk-00000020", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:17] Set("PJSIP/SipTrunk-00000020", "CALLERID(name-pres)=allowed_not_screened") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:18] Set("PJSIP/SipTrunk-00000020", "CALLERID(num-pres)=allowed_not_screened") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:19] NoOp("PJSIP/SipTrunk-00000020", "CallerID Entry Point") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:20] Set("PJSIP/SipTrunk-00000020", "__CRM_DIRECTION=INBOUND") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:21] Set("PJSIP/SipTrunk-00000020", "__CRM_SOURCE=+10123456789") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:22] Set("PJSIP/SipTrunk-00000020", "__CRM_LINKEDID=1524074980.24092") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:23] ExecIf("PJSIP/SipTrunk-00000020", "1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [+19876543210@from-pstn:24] Goto("PJSIP/SipTrunk-00000020", "ivr-1,s,1") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (ivr-1,s,1)
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:1] Set("PJSIP/SipTrunk-00000020", "INVALID_LOOPCOUNT=0") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:2] Set("PJSIP/SipTrunk-00000020", "_IVR_CONTEXT_ivr-1=") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:3] Set("PJSIP/SipTrunk-00000020", "_IVR_CONTEXT=ivr-1") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:4] Set("PJSIP/SipTrunk-00000020", "__IVR_RETVM=") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:5] GotoIf("PJSIP/SipTrunk-00000020", "0?skip") in new stack
[2018-04-18 14:09:43] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:6] Answer("PJSIP/SipTrunk-00000020", "") in new stack
[2018-04-18 14:09:44] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:7] Wait("PJSIP/SipTrunk-00000020", "1") in new stack
[2018-04-18 14:09:45] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:8] Set("PJSIP/SipTrunk-00000020", "IVR_MSG=custom/ivr-main") in new stack
[2018-04-18 14:09:45] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:9] Set("PJSIP/SipTrunk-00000020", "TIMEOUT(digit)=3") in new stack
[2018-04-18 14:09:45] VERBOSE[6118][C-0000000f] func_timeout.c: Digit timeout set to 3.000
[2018-04-18 14:09:45] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:10] ExecIf("PJSIP/SipTrunk-00000020", "1?Background(custom/ivr-main)") in new stack
[2018-04-18 14:09:45] VERBOSE[6118][C-0000000f] file.c: <PJSIP/SipTrunk-00000020> Playing 'custom/ivr-main.slin' (language 'en')
[2018-04-18 14:09:54] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@ivr-1:11] WaitExten("PJSIP/SipTrunk-00000020", "5,") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx_builtins.c: Timeout on PJSIP/SipTrunk-00000020, going to 't'
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [t@ivr-1:1] Goto("PJSIP/SipTrunk-00000020", "ext-group,300,1") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (ext-group,300,1)
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:1] GotoIf("PJSIP/SipTrunk-00000020", "0?cid") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:2] PlayTones("PJSIP/SipTrunk-00000020", "ring") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:3] Progress("PJSIP/SipTrunk-00000020", "") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:4] Macro("PJSIP/SipTrunk-00000020", "user-callerid,") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:1] Set("PJSIP/SipTrunk-00000020", "TOUCH_MONITOR=1524074980.24092") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:2] Set("PJSIP/SipTrunk-00000020", "AMPUSER=+10123456789") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:3] GotoIf("PJSIP/SipTrunk-00000020", "0?report") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:4] ExecIf("PJSIP/SipTrunk-00000020", "1?Set(REALCALLERIDNUM=+10123456789)") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:5] Set("PJSIP/SipTrunk-00000020", "AMPUSER=") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:6] GotoIf("PJSIP/SipTrunk-00000020", "0?limit") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:7] Set("PJSIP/SipTrunk-00000020", "AMPUSERCIDNAME=") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:8] ExecIf("PJSIP/SipTrunk-00000020", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:9] GotoIf("PJSIP/SipTrunk-00000020", "1?report") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (macro-user-callerid,s,16)
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:16] NoOp("PJSIP/SipTrunk-00000020", "Macro Depth is 1") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:17] GotoIf("PJSIP/SipTrunk-00000020", "1?report2:macroerror") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (macro-user-callerid,s,19)
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:19] GotoIf("PJSIP/SipTrunk-00000020", "0?continue") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:20] Set("PJSIP/SipTrunk-00000020", "__TTL=64") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:21] GotoIf("PJSIP/SipTrunk-00000020", "1?continue") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (macro-user-callerid,s,37)
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:37] Set("PJSIP/SipTrunk-00000020", "CALLERID(number)=+10123456789") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:38] Set("PJSIP/SipTrunk-00000020", "CALLERID(name)=+10123456789") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:39] GotoIf("PJSIP/SipTrunk-00000020", "0?cnum") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:40] Set("PJSIP/SipTrunk-00000020", "CDR(cnam)=+10123456789") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:41] Set("PJSIP/SipTrunk-00000020", "CDR(cnum)=+10123456789") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-user-callerid:42] Set("PJSIP/SipTrunk-00000020", "CHANNEL(language)=en") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:5] Macro("PJSIP/SipTrunk-00000020", "blkvm-setifempty,") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-blkvm-setifempty:1] GotoIf("PJSIP/SipTrunk-00000020", "1?init") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (macro-blkvm-setifempty,s,4)
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-blkvm-setifempty:4] Set("PJSIP/SipTrunk-00000020", "__BLKVM_CHANNEL=PJSIP/SipTrunk-00000020") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-blkvm-setifempty:5] Set("PJSIP/SipTrunk-00000020", "SHARED(BLKVM,PJSIP/SipTrunk-00000020)=TRUE") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-blkvm-setifempty:6] Set("PJSIP/SipTrunk-00000020", "GOSUB_RETVAL=TRUE") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@macro-blkvm-setifempty:7] MacroExit("PJSIP/SipTrunk-00000020", "") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:6] GotoIf("PJSIP/SipTrunk-00000020", "1?skipov") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (ext-group,300,9)
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:9] Set("PJSIP/SipTrunk-00000020", "RRNODEST=") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:10] Set("PJSIP/SipTrunk-00000020", "__NODEST=300") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:11] GosubIf("PJSIP/SipTrunk-00000020", "0?sub-rgsetcid,s,1()") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:12] Set("PJSIP/SipTrunk-00000020", "__PICKUPMARK=300") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [300@ext-group:13] Gosub("PJSIP/SipTrunk-00000020", "sub-record-check,s,1(rg,300,dontcare)") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:1] GotoIf("PJSIP/SipTrunk-00000020", "12?initialized") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (sub-record-check,s,10)
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:10] NoOp("PJSIP/SipTrunk-00000020", "Recordings initialized") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:11] ExecIf("PJSIP/SipTrunk-00000020", "0?Set(ARG3=dontcare)") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:12] Set("PJSIP/SipTrunk-00000020", "REC_POLICY_MODE_SAVE=") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:13] ExecIf("PJSIP/SipTrunk-00000020", "0?Set(REC_STATUS=NO)") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:14] GotoIf("PJSIP/SipTrunk-00000020", "2?checkaction") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx_builtins.c: Goto (sub-record-check,s,17)
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:17] GotoIf("PJSIP/SipTrunk-00000020", "0?sub-record-check,rg,1") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:18] NoOp("PJSIP/SipTrunk-00000020", "Generic rg Recording Check - +10123456789 300") in new stack
[2018-04-18 14:09:59] VERBOSE[6118][C-0000000f] pbx.c: Executing [s@sub-record-check:19] Gosub("PJSIP/SipTrunk-00000020", "recordcheck,1(dontcare,rg,300)") in new stack