Bhavik Patel
Bhavik Patel

Reputation: 613

Call Recording in Freeswitch

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.

Upvotes: 3

Views: 16021

Answers (2)

Mohammad Yusuf
Mohammad Yusuf

Reputation: 17074

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

Upvotes: 10

Nithish
Nithish

Reputation: 1640

You can record a call by adding the command below into the dialplan:

<action application="record" data="/tmp/data.wav 20 200"/>

The format of this is record,Record File,<path> [<time_limit_secs>] [<silence_thresh>] [<silence_hits>] with time_limit_secs, silence_thresh, silence_hits all being optional.

Refer the FreeSWITCH wiki for more details.

https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record

EDIT: As @hdiogenes pointed out, this records like a voicemail. What you OP is looking for is the application record_session.

https://freeswitch.org/confluence/display/FREESWITCH/record_session

Upvotes: 2

Related Questions