FreeSWITCH生成录音文件


修改拨码计划
编辑../freeswitch/conf/dialplan/default.xml
找到Local_Extension节点,将一下内容补充进去,完成后,执行relaodxml即可。
<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"/>
 
二、让录音支持其它格式
  录音如果要生成mp3格式的文件,则需要安装mod_shout模块。这个模块依赖以下的库:
    yum install libshout-devel
    yum install lame-devel
    yum install libmpg123-devel
  编译FreeSWITCH时,修改源码目录下的modules.conf文件,把第120行#formats/mod_shout前的#去掉


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM