AUDIOHOOK_INHERIT(MixMonitor)=yes on a queue not working?

Hi,

I’ve got mixmonitor set on a queue in a member connect macro which is working successfully to record the calls received by queue members, the reason I have done it like this and not using the queue mixmonitor functionality is so that I can use variables at member connect time to use a meaningful filename for the recording.

This is all working fine until queue member A receives a call, decides they need to do an attended transfer and calls member B, converses with them and then transfers the queue call they received to member B using the standard SIP functionality on their softphone NOT using the in call Asterisk DTMF keys.

This is expected behaviour as far as I understand because when the call is transferred to another channel MixMonitor will exit and the recording stops. In order to carry on recording a call when the channel changes there is the function to set inheritance on the Audio Hook that MixMonitor uses via:

Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)

However this is having no effect when I test it in the queue member connection macro.

What am I doing wrong, and is there any workaround to get MixMonitor to continue recording the call through a SIP attended transfer?

If it gives any further clues, the attempt to set the TESTTRANSFERFLAG in the macro as an inherited variable is also failing, and it cannot be read from the receiving dialplan of the transfer.

[macro-queuerec]
exten = s,1,NoOp(queuerec Sub)
same  =   n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
same  =   n,Set(__XIVOCALLRECFN=Queue-${XIVOCALLERID}-${CUT(MEMBERNAME,/,2)}-${UNIQUEID})
same  =   n,MixMonitor(${XIVOCALLRECFN}.wav49)
same  =   n,Set(__TESTTRANSFERFLAG=TRANSFER)
same  =   n,MacroExit

Thanks a lot.