首页 > 其他 > 详细

如何让你的freeswitch的IVR支持inband

时间:2014-10-30 13:08:36      阅读:680      评论:0      收藏:0      [点我收藏+]

Description

You can use start_dtmf in a dialplan to enable in-band DTMF detection (i.e. the detection of DTMF tones on a channel). You should do this when you want to be able to identify DTMF tones on a channel that doesn‘t otherwise support another signaling method (like RFC2833 or INFO).

Usage

Example

   <extension name="ivr_demo">
     <condition field="destination_number" expression="5000">
       <action application="answer"/>       
     <action application="start_dtmf" /> 在dialpaln的规则里加上这条内容,可以将tone转成rfc2833然后再进行收音转其他地方去。
      <action application="ivr" data="demo_ivr"/>
     </condition>
   </extension>

The start_dtmf line listed above starts the start_dtmf application on this channel to allow for DTMF detection.

WARNING: Do not use the start_dtmf application and the start_dtmf_generate application together. If both are running at the same time you will cause a feedback loop to occur within FreeSWITCH itself, such that a DTMF tone from a caller will result in repetitive DTMF tones being identified by FreeSWITCH.

WARNING: If using in conjunction with ring_ready, make sure that ring_ready is called first or else it may not work.


This application uses Media BUG

如何让你的freeswitch的IVR支持inband

原文:http://blog.chinaunix.net/uid-20069582-id-4573065.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!