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.
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"/>