The MixMonitor follows the channel always, this means you need to ensure that it is placed on the right channel using pre-dial handlers. If you put it on the transferer then it will not follow.
Thanks it make sense that the original channel is associated with MixMonitor and when the call gets transferred away, that the call disconnect and MixMonitor will stop.
I can confirm that doesn’t matter if I use b, B or U it doesn’t resolve my problem. MixMonitor continues to be associated to the first channel:
== MixMonitor close filestream (mixed)
== Executing [/usr/local/bitco/convert 1476794692.77]
== MixMonitor close filestream (mixed)
== Executing [/usr/local/bitco/convert 1476794692.77]
== MixMonitor close filestream (mixed)
== Executing [/usr/local/bitco/convert 1476794675.75]
== End MixMonitor Recording SIP/4001-0000003e
== End MixMonitor Recording SIP/4001-0000003e
== End MixMonitor Recording SIP/4001-0000003d
Since MixMonitor is associated to SIP/4001, doesn’t matter what the uniqueid of the channel will be or even if I force the file to a specific name, it still won’t record.
Any suggestions to force MixMonitor to another channel?
I ran into the same problem and was surprised that this still is kind of an issue that seems not really to be addressed since the deprication of AUDIOHOOK INHERIT().
Thanks for pointing me to the U(record) option of the Dial command in this fairly old post!
I managed to change my dial plan in such a way that I only use this construction to start a MixMonitor for calls from internal to external numbers. This is actually the only scenario where this goes wrong. In this way I don’t have duplicated call recordings since my other internal calls use the ‘normal’ MixMonitor (without adding the U(record) option to the Dial command.
I know this is a old post but my freepbx 16 still has this issue I tried implementing this fix but I’m clearing doing something wrong can someone please help going crazy. This is how my current dialplan looks and no matter where i put in the fix it breaks causing no calls to work both internal & external. Thank you in advance.
[from-internal]
include => from-internal-noxfer
include => from-internal-xfer
include => bad-number ; auto-generated
exten => h,1,Macro(hangupcall)