SendDTMF

来源:互联网 发布:怎么打开mac的airplay 编辑:程序博客网 时间:2024/06/08 02:05

SendDTMF: 
        用途:发送任意DTMF数字到通道上。 
        语法: 
        SendDTMF(digits[|timeout_ms]) 
        发送任意DTMF到通道上,可以是SIP,ZAP/DAHDI,IAX等通道。如果digits中包含一个“w”字符,会暂停0.5秒。 
        如果未指定timeout_ms参数,那么默认超时是 250 ms (在 Asterisk 1.4.21.2版本上查对过)。 
 
其它发送DTMF办法 
        可以通过playback函数播放DTMF声音的方式来发送DTMF。 
        可以在Dial命令里面加参数"D"选项也能发送DTMF到一个通道。 
        对于SIP通道,可以在SIP INFO包里发送DTMF信息。  

 

 

Asterisk cmd SendDTMF

Synopsis:

 Sends arbitrary DTMF digits 

Description:

 SendDTMF(digits[|timeout_ms]) 

Sends DTMF digits on a channel. 
A 'w' as digit will cause a pause of 0.5 seconds. 
The timeout option only works in CVS after 12-30-04. If not specified, the default value of the timeout is 250 ms (checked on Asterisk 1.4.21.2) 

Note: The Dial command comes with the 'D' option that is also able to send DTMF to a channel. 

http://www.voip-info.org/wiki/view/Asterisk+cmd+SendDTMF

原创粉丝点击