将DTMF发送到DAHDI频道

时间:2016-11-11 09:52:56

标签: asterisk

我正在试图找到一种方法将DTMF命令发送到我的ISDN调制解调器(通过BRI卡)以启用它提供的某些服务。例如,对于呼叫转移,我需要发送DTMF 21 #。我已经成功地用mISDN做到了,但我现在需要用DAHDI来做。

到目前为止,我已设法做到这一点不起作用:

[from-internal-custom] 
exten => 4321,1,Answer
exten => 4321,n,Noop(Enable Callforward)
exten => 4321,n,Dial(DAHDI/g0/,10,M(dtmf))

[macro-dtmf]
exten => s,1,SendDTMF(*21*<number>#,,DAHDI)

其中number是我想要进行呼叫前转的号码(没有&lt;&gt;)。

如果我将ISDN电话放在ISDN调制解调器上,我只需要拨打功能码 21 &lt;数字&gt;#并且有效。

有没有办法用DAHDI做到这一点?

1 个答案:

答案 0 :(得分:0)

有特殊的钥匙

 D([called][:calling[:progress]]): Send the specified DTMF strings
    *after* the called party has answered, but before the call gets bridged.
    The  <called> DTMF string is sent to the called party, and the  <calling>
    DTMF string is sent to the calling party. Both arguments  can be used
    alone.  If <progress> is specified, its DTMF is sent immediately after
    receiving a PROGRESS message.
相关问题