Jordan Violet
Jordan Violet

Reputation: 73

Twilio unable to play mp3 file

I have the following simple twiml bin:

<?xml version="1.0" encoding="UTF-8" ?>
<Response>
    <Play>https://jade-bat-5280.twil.io/assets/zero-tone.mp3</Play>
</Response>

The mp3 plays fine if you load it in the browser, but when the TwiML bin is played, when the voice number is called, there is no sound.

Upvotes: 0

Views: 96

Answers (1)

Alan
Alan

Reputation: 10781

That is a DTMF tone.

It depends on the device you are calling from if you hear that tone (say if you use a for that URL and then associate that TwiML to your Twilio Number).

DTMF is handled as RFC 2833 by carriers. The DTMF tone regeneration for a non-IP end-point should happen on the edge. IP devices should use RFC 2833/4733 to obtain the DTMF.

I don't hear the tone (or hear a small click which is the remnants of the removed DTMF) from my VoIP phone since the DTMF is handled as RTP events. If I call from my cell, I hear the full DTMF tone.

So, it is working as expected.

Upvotes: 1

Related Questions