You'll want a little something like this (on your B-leg):

<action application=”set” data=”record_file_name={recordings_dir}/${strftime(%Y-%m-%d-%H-%M-%S)}_${uuid}.wav” inline=”true”/><action application=”export” data=”execute_on_answer=record_session {record_file_name}”/>  

Trusty "execute on answer"!

On Thu, 9 Jun 2016 at 16:29 Caragea Silviu <silviu.cpp@gmail.com> wrote:
Hello,

I want to start recording a call once it's bridged (the other party answered). And stop recording once the other party closed the call.

I'm currently using uuid_record but It's recording everything including the ringtone and also after the other party closed the call all other messages I'm playing to the caller.

Silviu
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org