SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How to disable the DTMF message in Media Streams

We have recently enabled DTMF message for customers using Media Streams. By default a DTMF message will be sent when someone presses a touch-tone number key (such as the "1" key in the example message below) in the call, typically in response to a prompt in the outbound stream.

To disable receiving DTMF messages you need to add a custom parameter into your <Stream> verb:

<Parameter name="Dtmf" value ="False" />

The full <Stream> verb block with DTMF messages blocked:

<Response>
<Connect>
<Stream name="Example Audio Stream" url="wss://mystream.ngrok.io/example" >
<Parameter name="Dtmf" value ="False" />
</Stream>
</Connect>
</Response>

For more information on using Stream see our Docs on <Stream> TwiML Verb.

Have more questions? Submit a request
Powered by Zendesk