Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

13241: Dial->SIP: Invalid method value


WARNING: 13241

warning-13241 page anchor
WARNING

You receive this warning when the method attribute on <Dial><Sip> is set to a value other than GET or POST. On <Sip>, the method attribute controls which HTTP method Twilio uses when requesting the TwiML URL specified by the url attribute. If you omit method, Twilio uses POST by default.

Possible causes

possible-causes page anchor
  • Your <Sip> noun includes method with a value other than GET or POST.
  • Your application sets a url on <Sip> and passes an unsupported HTTP method for the request to that URL.
  • Your TwiML is generated dynamically, and the code that builds <Dial><Sip> is sending an invalid method value instead of using a supported value or the default POST.
  • Update the <Sip> noun to use method="GET" or method="POST".
  • If you do not need to override the HTTP method, remove the method attribute and let Twilio use the default POST.
  • Review the code or template that generates your TwiML and confirm the url and method values on <Sip> are valid before you return the response.

Additional resources

additional-resources page anchor