Twilio Redirect within a <Dial><Queue> probably not working

829 Views Asked by At

I have a TwiML which is performing a <Dial> to a <Queue> (as described here https://www.twilio.com/docs/api/twiml/queue)

In the url attribute of <Queue> I put the url to the following TwiML:

<Response>
    <Say voice="man" language="en">
        Your call will be recorded.
    </Say>
    <Redirect>
        http://my-twilio-powered-website.com/twilio/queue/dequeued/foo/
    </Redirect>
</Response>

The <Say> verb works beautifully, but the <Redirect> is ignored.

Is that correct? Because according to Docs it's a valid verb in the url of a <Queue>.

I have no error in the AppMonitor.

2

There are 2 best solutions below

0
On BEST ANSWER

For the ones who ends up here with the same or similar problem. When I wrote the question I put a generic piece of code with language EN, in reality the issue was for other languages. I opened a ticket with Twilio, (at the time of the issue) and they answered asking me to change the voice for those other languages, and it worked. Seems it was a bug on twilio side, related to specific voices.

2
On

I had a very similar issue with <Redirect> and it was because there was an ampersand & in the URL.

Does your URL have any of those?

PS. I would have commented, rather than created a new answer but i don't have enough reputation!