So basically what I have is :

Leg A is answered and I play some ivr message inside then I'm bridging this leg by calling another number (and this is the call I want to record). Once the other side is closing the call I want to stop the recording.

media_bug_answer_req I don't think will work as time the call is already answered.

Silviu

On Thu, Jun 9, 2016 at 6:35 PM, Joshua Gigg <giggsey@gmail.com> wrote:
If you are using uuid_record, you can use the 'media_bug_answer_req=true'  variable to start recording once the channel has been answered.

On Thu, 9 Jun 2016 at 16:33 Callum Guy <guy.callum@gmail.com> wrote:
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
_________________________________________________________________________
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

_________________________________________________________________________
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