Call recording does not stop when call is transfered to a route that is set to Never

Call recording does not stop when call is transferred to a route that is set to Never.
The call is answered by an agent in a queue thats set to record, The agent makes an attened transfer to an external number via a route that set to ‘Never’ record . but the cdr for the external call shows no linked recording but on checking the initial recording of the agents call the whole call is there including the transferred part

looking at the logs I see that the Never flag is there and its stopping the outbound recording but not the queues. Any ideas? the system is fpbx 16 and customer reports this wasnt an issue when was fpbx13

[23895][C-000004cd] pbx.c: Executing [recordcheck@sub-record-check:14] Set(“Local/2908@from-queue-000070c5;2”, “__REC_POLICY_MODE=NEVER”) in new stack
[2024-03-07 15:21:06] VERBOSE[23895][C-000004cd] pbx.c: Executing [recordcheck@sub-record-check:15] Goto(“Local/2908@from-queue-000070c5;2”, “stoprec”) in new stack
[2024-03-07 15:21:06] VERBOSE[23895][C-000004cd] pbx_builtins.c: Goto (sub-record-check,recordcheck,26)
[2024-03-07 15:21:06] VERBOSE[23895][C-000004cd] pbx.c: Executing [recordcheck@sub-record-check:26] NoOp(“Local/2908@from-queue-000070c5;2”, “Stopping recording: out, 903009994999”) in new stack
[2024-03-07 15:21:06] VERBOSE[23895][C-000004cd] pbx.c: Executing [recordcheck@sub-record-check:27] Set(“Local/2908@from-queue-000070c5;2”, “__REC_STATUS=STOPPED”) in new stack
[2024-03-07 15:21:06] VERBOSE[23895][C-000004cd] pbx.c: Executing [recordcheck@sub-record-check:28] System(“Local/2908@from-queue-000070c5;2”, "/var/lib/asterisk/bin/stoprecording.php “Local/2908@from-queue-000070c5;2"”) in new stack

there is a post about similar from last year with it seems no definate outcome

Ok after a lot of testing the out come is not what was expected.

so scenario is a follows

caller calls in to queue, agent answers and speaks to caller and then needs to transfer to external party with the call not now being recoreded
Agent Dials the Asterisk Attended transfer code speaks to teh remote party and hangs up with now an external caller and callee
the inbound route is set to ‘yes’ in record and the external route is set to no. we get a recording of teh first part of the call . No recording of the agent speaking to the dialed external party , but when teh agent clears down the call is recorded again…
The work around I have found is below added to some dialplan that was needed to stop the FORCE_CONFIRM option being passed to the external call

; lets Blank ${FORCE_CONFIRM}
exten => _7890XXXXXXXXXX,1,Answer
exten => _7890XXXXXXXXXX,n,Noop(FORCE_CONFIRM is set to . ${FORCE_CONFIRM} . ${RECORD_ID})
exten => _7890XXXXXXXXXX,n,Set(__FORCE_CONFIRM=)
exten => _7890XXXXXXXXXX,n,Noop(FORCE_CONFIRM is now set to . ${FORCE_CONFIRM} . )
exten => _7890XXXXXXXXXX,n,System(asterisk -rx "mixmonitor stop ${RECORD_ID}")
exten => _7890XXXXXXXXXX,n,Goto(from-internal,5${EXTEN:3},1)

Im sure there is a better was but we needed a fix , the dialplan StopMixMonitor applictaion didnt work as no mixmonitorid seems to be set in freepbx call recording. I maybe wrong here though, but I couldn’t find it and happy to be corrected

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.