发送DTMF到DAHDI通道
问题描述:
我试图找出一种方法来发送DTMF命令我的ISDN调制解调器(throught BRI卡),使其能够提供一些服务。例如,对于呼叫前转,我需要发送DTMF #。我已经成功地用mISDN做到了这一点,但我现在需要用DAHDI来做到这一点。发送DTMF到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是我想要做的呼叫前转数(不<>)。
如果我把ISDN电话放在ISDN调制解调器上,我只需要拨打功能代码 < number>#并且它可以工作。
有没有办法与DAHDI做到这一点?
答
有针对
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.
好特殊的按键,我试过两个那些选项(M和d),我得到的结果相同:' - 被叫DAHDI/G0/ - DAHDI/I1/-bc正在进行传递到SIP/4545-000000f5 - 跨度1:通道0/1挂断了请求,使28 - Hungup“DAHDI/I1/-bc'' – Moowalker
意味着未应答呼叫。我没有看到你如何可以在接听电话之前发送dtmf。您应该查看您的dahdi设置或聘请专家。 – arheops