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下。

  • 相关阅读:
    Best code水题之路
    我的CodeF水A题之路
    studing(来自转载)
    BFS
    fibonacci数列(五种)
    Redis阻塞队列原理学习
    the enum hack
    Divide Two Integers
    Surrounded Regions
    Search in Rotated Sorted Array
  • 原文地址:https://www.cnblogs.com/myzhijie/p/2818926.html
Copyright © 2011-2022 走看看