[asterisk-users] How to use mixmonitor when transfering a call

Trevor Peirce tpeirce-lists at acrovoice.ca
Fri Apr 8 16:18:01 CDT 2022


On 2022-04-08 2:11 p.m., Carlos Chavez wrote:
>     I am having a problem with my recordings.  Mixmonitor is called in 
> the "macro" when you dial an extension.  If that call is transferred 
> to another extension then the recording is reset and we lose the 
> recording for the original call.  How can I tell Mixmonitor to keep 
> recording and not reset?  I have the "a" option set in mixmonitor to 
> append and not overwrite.  Is there a way to know if Mixmonitor has 
> already started on this call and avoid executing it again when 
> transferred?  This is what I use:
>
> [ Context 'grabar' created by 'pbx_config' ]
>   's' =>            1. 
> Set(MONITOR_FILE=${STRFTIME(${EPOCH},,%Y)}/${STRFTIME(${EPOCH},,%m)}/${UNIQUEID}.wav) 
> [extensions.conf:0]
>                     2. Mixmonitor(${MONITOR_FILE},ba) [extensions.conf:0]
>                     3. Return() [extensions.conf:0]
>
>     On every transfer the recording starts again at the moment. I 
> thought the "a" option would simply append to the file and keep 
> going.  Any ideas?

Add an ExecIf that returns early if MONITOR_FILE already has a filename.

-- 
Trevor Peirce
AcroVoice Solutions Inc

www.acrovoice.ca - 1-888-606-3030 x701




More information about the asterisk-users mailing list