[Freeswitch-users] Pause/resume recording mod_callcenter

Mike Jerris mike at freeswitch.org
Wed Sep 23 19:56:50 UTC 2020


mod_fifo (the call queue module written and maintained by the core freeswitch team) already automatically pauses recordings while you are waiting in queue by default.  

> On Sep 21, 2020, at 3:21 PM, Jonathan Hunter <jhunter at voxboxcoms.co.uk> wrote:
> 
> Hi guys,
> 
> I did see a post some years back when someone was using mod_callcenter and trying to get pause/resume recording working correctly.
> 
> I am aware callcenter records by default but have removed that from the profile, and I am trying to set the record parameters below before it hits the call queue;
> 
> 
> table.insert(xml, [[<action application="export" data="RECORD_STEREO=true"/>]]);
> table.insert(xml, [[<action application="export" data="RECORD_TOGGLE_ON_REPEAT=true"/>]]);
> table.insert(xml, [[<action application="export" data="RECORD_APPEND=true"/>]]);
> table.insert(xml, [[<action application="export" data="execute_on_answer=record_session $${recordings_dir}/${caller_id_number}.${uuid}.wav"/>]]);
> table.insert(xml, [[<action application="bind_meta_app" data="1 b s stop_record_session::$${recordings_dir}/${caller_id_number}.${uuid}.wav"/>]]);
> table.insert(xml, [[<action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${uuid}.wav"/>]]);
> 
> When the call answers the recording is there, however when I hit *1 it does stop the recording, however when I hit *2 it starts recording again but creates a new file, doesnt append the existing file.
> 
> Am I doing something wrong here with configuration? As just want to be able to pause recording, and then start it which would then append.
> 
> We are using freeSWITCH version 1.10.5.
> 
> Any advice would be great!
> 
> Thanks
> 
> Jon




More information about the FreeSWITCH-users mailing list