freeswitch錄音功能


首先備份/usr/local/freeswitch/conf/dialplan/default.xml 。
然后vi編輯default.xml ,在
<extension name="Local_Extension">
     <condition field="destination_number" expression="^(10[01][0-8])$">
下面加入以下語句即可錄音。
<action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
   <action application="set" data="RECORD_COPYRIGHT=(c) 2011"/>
   <action application="set" data="RECORD_SOFTWARE=FreeSWITCH"/>
   <action application="set" data="RECORD_ARTIST=FreeSWITCH"/>
   <action application="set" data="RECORD_COMMENT=FreeSWITCH"/>
   <action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
   <action application="set" data="RECORD_STEREO=true"/>
   <action application="record_session" data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
大家應該看明白了,錄音會自動存放在${base_dir}/recordings/archive下。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM