Call Recording in Freeswitch

Bhavik Patel picture Bhavik Patel · Oct 11, 2014 · Viewed 10.6k times · Source

I have a freeswitch working on one server and call is working fine. But now i want to record each and every call to some specific format like .wav OR .gsm I already tried with "record_session" application.Record session application

Is it right application for record call ?

If yes then please suggest me to some example and if not then suggest me other application also.

Answer

Mohammad Yusuf picture Mohammad Yusuf · Nov 27, 2015

This question is old but I'll still answer it for the people who could benefit in future.

record_session will record the entire session including the ringing. If you just want to record the conversation use execute_on_answer=record_session followed by complete file path, like so:

<action application="export" data="execute_on_answer=record_session $${base_dir}/recordings/${strftime(%Y%m%d%H%M%S)}_${caller_id_number}.wav"/>