问题
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.
回答1:
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 then you do that with this command:
<action application="export" data="execute_on_answer=record_session $${base_dir}/recordings/${strftime(%Y%m%d%H%M%S)}_${caller_id_number}.wav"/>
回答2:
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
来源:https://stackoverflow.com/questions/26313201/call-recording-in-freeswitch