Twilio - Outgoing call - play DTMF tones

China☆狼群 提交于 2019-12-18 06:08:12

问题


In my Twilio-base application I create outgoing call via Twilio rest API.

When target side responds, I put him to recently created conference.

Question is: how can I play certain set of DTMF tones before putting him to conference?

The responding side is a certain system which accepts DTMF tones, and I need to play some set of digits.

I have read the docs but I did not find way to do this.

Is it possible?


回答1:


Twilio evangelist here.

There are two different ways to do this depending on your situation.

One option is to use the sendDigits parameter when making your outbound phone call. Specifying sendDigits tells Twilio to dial a set of DTMF tones once your outbound call has connected. This is an example that includes the sendDigits parameter.

Another option is to use the <Play> verb includes a parameter named digits which lets you tell Twilio it should play a set of DTMF tones. This is an example of using <Play> with the digits parameter.

Hope that helps.



来源:https://stackoverflow.com/questions/24561006/twilio-outgoing-call-play-dtmf-tones

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