Call Recording in Freeswitch

筅森魡賤 提交于 2019-12-22 13:56:41

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!