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下。
  • 相关阅读:
    一步一步来
    性能管理分析
    css架构
    bootstrap栅格系统的div高度怎样定?
    有效地重构代码
    模块化开发
    性能优化和模块化
    表单只能输入数字
    SpringMVC拦截器
    整合SSM
  • 原文地址:https://www.cnblogs.com/cnsanshao/p/3228002.html
Copyright © 2011-2022 走看看