Can I send digits to an incoming twilio call with twiml?

ε祈祈猫儿з 提交于 2020-06-24 12:27:05

问题


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.

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.

If I were receiving the call in a web client, I could use connection.sendDigits

Is there a way to do this in just twiml? Should I just play a recording file of various DTMF tones?

Edit: To clarify, I'm receiving calls from another automated system that expects additional numbers to be dialed after the call is connected.


回答1:


Turns out the way to to do this is by using the <Play> twiml tag, which accepts a digits attribute.

<Play digits="94"></Play>


来源:https://stackoverflow.com/questions/32195711/can-i-send-digits-to-an-incoming-twilio-call-with-twiml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!