Post Call Recording Script Not Executing On Queue Calls

I have a Post Call Recording Script that I run to move the recording files to another server for storage. This works great for outbound and direct inbound calls, but the script doesn’t execute for queue calls. I noticed that sub-record-check section of extensions_additional.conf is different for queue calls(see below). Is this a bug, or an incorrect setting on my part?

exten => record,1,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
exten => record,n,MixMonitor(${MIXMON_DIR}${YEAR}/${MONTH}/${DAY}/${CALLFILENAME}.${MIXMON_FORMAT},${MIXMON_POST})
exten => record,n,Set(__REC_STATUS=RECORDING)
exten => record,n,Set(CDR(recordingfile)=${CALLFILENAME}.${MON_FMT})
exten => record,n,Return()

exten => recq,1,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
exten => recq,n,Set(__REC_STATUS=RECORDING)
exten => recq,n,Set(CDR(recordingfile)=${CALLFILENAME}.${MON_FMT})
exten => recq,n,Return()

I know this post a few years old, but I have the same issue on the latest freepbx 2.11 (and also on 2.10). Seems the script does not get run for queues.

Hi Caesar,

My script has been working to move queue calls post recording for quite some time now. It just started working one day with no know changes on my end, so I assumed that this was corrected by some update. Unfortunately I can’t tell you which update fixed the issue. I’m currently on framework

The only issue we still have is that conference calls do not get moved by the script, but all other calls (including queue calls) are moved post recording. We use conference calls infrequently, so I just move those recordings manually and never took the time to investigate why.

Good luck!