我可以使用 twiml 将数字发送到传入的 twilio 呼叫吗? [英] Can I send digits to an incoming twilio call with twiml?
问题描述
我有一个可以用 twiml 处理来电的 twilio 号码.这些来电希望接收方在呼叫接通后按一些数字.
I have a twilio number that can process incoming calls with twiml. These incoming calls expect the recipient to press some digits after the call is connected.
如果我要拨出电话,我可以使用
标签的 sendDigits
属性.但是,我不知道如何响应来电.
If I were making an outgoing call, I could use the sendDigits
attribute of a <Dial>
tag. However, I can't figure out how to do this in response to an incoming call.
如果我在 Web 客户端接收呼叫,我可以使用 connection.sendDigits
If I were receiving the call in a web client, I could use connection.sendDigits
有没有办法在 twiml 中做到这一点?我应该只播放各种DTMF音的录音文件吗?
Is there a way to do this in just twiml? Should I just play a recording file of various DTMF tones?
澄清一下,我收到了来自另一个自动化系统的电话,该系统希望在呼叫接通后拨打更多号码.
To clarify, I'm receiving calls from another automated system that expects additional numbers to be dialed after the call is connected.
推荐答案
原来的方法是使用 <Play>
twiml 标签,它接受一个 digits
属性.
Turns out the way to to do this is by using the <Play>
twiml tag, which accepts a digits
attribute.
<Play digits="94"></Play>
这篇关于我可以使用 twiml 将数字发送到传入的 twilio 呼叫吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!