Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
974 views
in Technique[技术] by (71.8m points)

rest - Twilio - Outgoing call - play DTMF tones

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...