- Joined
- Aug 23, 2022
- Messages
- 6
- Reaction score
- 0
Hello,
we have are using Twilio as my SIP trunk for calls and more recently SMS, Our 3CX is currently using 3CX 18.0.5.418
I have run into a problem where we are only able to send/receive SMS only once an SMS has been initiated from an extension. If the SMS is sent to our DID its not being received.
Twilio have sent me the following response to the errors im seeing:
I have triple checked that i am sending to the correct Webhook URL.
Any ideas what i can do to resolve?
we have are using Twilio as my SIP trunk for calls and more recently SMS, Our 3CX is currently using 3CX 18.0.5.418
I have run into a problem where we are only able to send/receive SMS only once an SMS has been initiated from an extension. If the SMS is sent to our DID its not being received.
Twilio have sent me the following response to the errors im seeing:
Error 12300 indicates that we received an invalid content type. Looking at the Debugger notifications on your account, I'm seeing the following error message:
sourceComponent=14100&ErrorCode=12300&LogLevel=ERROR&Msg=Invalid+Content-Type:+application/json;+charset=utf-8+supplied&contentType=application/json;+charset=utf-8&EmailNotification=false
The URL indicated in the error is your webhook URL.
When the message came in, we sent that payload to your webhook URL and received a response with Content-type: application/json. The API will only accept a xml response, TwiML to be exact, with Content-Type: text/xml. If you need the API to perform any actions, such as sending a reply, forwarding the messages, etc., then the response with those instructions will need to be in TwiML and the correct Content-type.
Otherwise, if you only want to receive the messages without responding, we generally recommend that you respond with either a 204 No Content or a 200 OK with Content-Type: text/xml and an empty <Response/> in the body. Either way, you will still receive the message, but you will continue receiving this warning if you do not change the response to a valid content type.
I have triple checked that i am sending to the correct Webhook URL.
Any ideas what i can do to resolve?