1 Twilio phone calls 4 Aaron Hackett posted 8 Years Ago Has anyone succeeded in using Twilio for a roaming phone #? Similar to the sms reply feature where you can assign the number to a person, but for a phone call... I would love this! We could have one on call # for all our pastors.
Aaron Hackett 8 years ago I forgot to mention... the error in Twilio is 12100 (document parse error) Attached is readout of the debug console.Error - 12100Document parse failureTwilio was unable to parse the provided XML Document.Your TwiML document must be a valid XML Document, or Twilio will not be able to read your document. You can debug XML parsing errors by getting the response body in the debugger, and then using an online validation tool like the W3C Validation Service.Possible CausesThere is a leading space, or an empty line, before the XML type header (i.e. <?xml version="1.0" encoding="UTF-8"?>)The root <Response> element is missingThere is an unclosed elementThere is an unquoted attributeThere is an improperly nested elementPossible SolutionsMake sure there is no extra space or line at the beginning of the file before the type headerMake sure your root element is <Response>XML is case sensitive, make sure your start and end elements match case. (Twilio elements begin with a capital letter)Make sure characters such as < > and & are escaped properly, as < > and &.Request InspectorPOSThttp://www.thehousechurch.tv/GetChannelFeed.ashx2016-08-10 09:00:16 UTCRequestResponseHeadersBodyShow RawInvalid request type.
Michael Garrison 8 years ago Try a GET request instead of POST... Rock is using the parameters in the URL so it expects a GET request and may be choking when passed parameters like the source phone number through POST. We don't actually have to pass anything to Rock, so hopefully it will just ignore what it doesn't need in the URL.I checked on the twimlet generator and it doesn't get rid of parentheses, so I don't think that's the issue...You could give me your TemplateId and ChannelId if you want me to verify the XML, but it's pretty basic, I imagine you can check it yourself ;-)
Aaron Hackett 8 years ago Just tried this. HTTP GET worked excellently! I am so excited to have this working. Thank you so much for your response and help. This is great! Blessings!
Michael Garrison 8 years ago So glad to hear it- I did just try submitting a POST request to the demo I set up and it returned "Invalid Request Type". Which explains the error. So yep, it's gotta be GET all the way. I'll update the answer accordingly.