Reputation: 2435
I'm trying to get basic SMS responses working on my server. I have a route set up at http://feedingforward-staging.herokuapp.com/api/sms that correctly produces the following TwiML when you make a GET request in the browser:
<?xml version="1.0" encoding="UTF-8"?><Response><Sms>Hey Monkey. Thanks for the message!</Sms></Response>
I've configured my Twilio number to point to this URL, and when I send a text to that number, the server does get the request and processes it with code 200 (OK). However, Twilio does not use the TwiML to send a response text.
Any idea why?
Upvotes: 1
Views: 857
Reputation: 2435
Fixed it with the help of one of the awesome customer service reps at Twilio.
My application was returning headers to Twilio with the content-type set to 'application/json'. I changed it to 'application/xml' and it worked!
Upvotes: 1
Reputation: 3125
On your Twilio Dashboard, visit Logs -> Notifcations here: https://www.twilio.com/user/account/log/notifications and see if there's any sort of message generated when you send a message.
Disclosure: Twilio employee here.
Upvotes: 3