Recording “Never” On Extension Not Stopping Recording

Home » Asterisk Users » Recording “Never” On Extension Not Stopping Recording
Asterisk Users 1 Comment

This must be something simple. We have recording starting on all our inbound calls and it works fine. I’d like to have the option to stop recording when transferred to certain extensions.

I set extension 7077 to “Never” and the log makes it look like the recording was stopped but it was not.

Any ideas how to troubleshoot?

[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:1] NoOp(“SIP/6010-000386f2”, “Exten Recording Check between 6010 and 7077”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:2] Set(“SIP/6010-000386f2”, “CALLTYPE=internal”)
in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:3] ExecIf(“SIP/6010-000386f2”,
“0?Set(CALLTYPE=)”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:4] Set(“SIP/6010-000386f2”, “CALLEE=never”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:5] ExecIf(“SIP/6010-000386f2”,
“0?Set(CALLEE=dontcare)”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:6] GotoIf(“SIP/6010-000386f2”, “0?callee”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:7] GotoIf(“SIP/6010-000386f2”, “0?caller”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:8] ExecIf(“SIP/6010-000386f2”,
“1?Set(CALLER_PRI=0):Set(CALLER_PRI=0)”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:9] ExecIf(“SIP/6010-000386f2”,
“1?Set(CALLEE_PRI=0):Set(CALLEE_PRI=0)”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:10] GotoIf(“SIP/6010-000386f2”,
“1?caller:callee”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Goto
(sub-record-check,exten,13)
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:13] Set(“SIP/6010-000386f2”, “RECMODE=dontcare”)
in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:14] ExecIf(“SIP/6010-000386f2”,
“0?Set(RECMODE=dontcare)”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:15] ExecIf(“SIP/6010-000386f2”,
“1?Set(RECMODE=never)”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:16] Gosub(“SIP/6010-000386f2”,
“recordcheck,1(never,internal,7077)”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[recordcheck@sub-record-check:1] NoOp(“SIP/6010-000386f2”, “Starting recording check against never”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[recordcheck@sub-record-check:2] Goto(“SIP/6010-000386f2”, “never”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Goto
(sub-record-check,recordcheck,14)
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[recordcheck@sub-record-check:14] Set(“SIP/6010-000386f2”,
“__REC_POLICY_MODE=NEVER”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[recordcheck@sub-record-check:15] Goto(“SIP/6010-000386f2”, “stoprec”)
in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Goto
(sub-record-check,recordcheck,25)
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[recordcheck@sub-record-check:25] NoOp(“SIP/6010-000386f2”, “Stopping recording: internal, 7077”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[recordcheck@sub-record-check:26] Set(“SIP/6010-000386f2”,
“__REC_STATUS=STOPPED”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[recordcheck@sub-record-check:27] System(“SIP/6010-000386f2”,
“/var/lib/asterisk/bin/stoprecording.php “SIP/6010-000386f2″”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[recordcheck@sub-record-check:28] Return(“SIP/6010-000386f2”, “”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[exten@sub-record-check:17] Return(“SIP/6010-000386f2”, “”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[s@macro-exten-vm:7] GotoIf(“SIP/6010-000386f2”, “1?macrodial”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Goto
(macro-exten-vm,s,13)
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[s@macro-exten-vm:13] GosubIf(“SIP/6010-000386f2”, “0?clrheader,1()”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[s@macro-exten-vm:14] Macro(“SIP/6010-000386f2”, “dial-one,15,Ttr,7077”)
in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[s@macro-dial-one:1] Set(“SIP/6010-000386f2”, “DEXTENp77”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[s@macro-dial-one:2] Set(“SIP/6010-000386f2”, “DIALSTATUS_CW=”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[s@macro-dial-one:3] GosubIf(“SIP/6010-000386f2”, “0?screen,1()”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[s@macro-dial-one:4] GosubIf(“SIP/6010-000386f2”, “1?cf,1()”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[cf@macro-dial-one:1] Set(“SIP/6010-000386f2”, “CFAMPUSER`10”) in new stack
[2016-09-13 14:42:46] VERBOSE[30146][C-0002c851] pbx.c: — Executing
[cf@macro-dial-one:2] ExecIf(“SIP/6010-000386f2”, “0?Return()”) in new stack

One thought on - Recording “Never” On Extension Not Stopping Recording

  • I’d recommend trying the support resources for the GUI that is managing your asterisk installation.

    This looks like it might be FreePBX dialplan logic to me, Most likely it won’t be something that the list will be able to help you modify.

    http://community.freepbx.org/ is the FreePBX Community support forum.