0

I'm trying to do something pretty simple that is straight from the Twilio blog at https://www.twilio.com/blog/2009/05/dialing-multiple-numbers-simultaneously-with-twilio.html

Namely, this:

<?xml version=“1.0” encoding=“UTF-8”?>
<Response>
    <Dial action=“/handleDialStatus.php” method=“GET”>
        <Number>877-555-1212</Number>
        <Number>877-999-1234</Number>
        <Number>877-123-4567</Number>
    </Dial>
</Response>

But it's returning 'Invalid TwiML'.

Any ideas?

Devin Rader
  • 10,260
  • 1
  • 20
  • 32
SAnderson
  • 41
  • 2

1 Answers1

0

Twilio developer evangelist here.

As Devin suggested in the comments, it looks like the blog post had smart quotes in the XML. The XML you need instead is:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Dial action="/handleDialStatus.php" method="GET">
    <Number>877-555-1212</Number>
    <Number>877-999-1234</Number>
    <Number>877-123-4567</Number>
  </Dial>
</Response>

I've updated the original blog post to fix this issue there too.

Let me know if this helps at all.

philnash
  • 70,667
  • 10
  • 60
  • 88