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前的#去掉

猜你喜欢

转载自www.cnblogs.com/myfk5741/p/11320600.html