zoukankan      html  css  js  c++  java
  • 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下。
  • 相关阅读:
    萨卡斯指法
    香港保险
    数据分析,了解行业
    数据分析师
    黑盒测试方法
    web系统的常用功能测试
    linux-磁盘问题
    mysql连表查询
    mysql模糊查询
    MySQL 数据类型
  • 原文地址:https://www.cnblogs.com/cnsanshao/p/3228002.html
Copyright © 2011-2022 走看看