Question

Photo of Dillan Cagnetta

0

Twilio SMS to international number not working

Ok, i have read all the other issues regarding twilio.

The problem why SMS are not being sent to international numbers is because Rock does not save the "+" in the phone field.

When testing on twilios site, when i added the "+" it worked. when i removed it, i got this error

Response 400

BAD REQUEST - The data given in the POST or PUT failed validation. Inspect the response body for details.

{
  "code": 21211,
  "message": "The 'To' number 27xxxxxxxx is not a valid phone number.",
  "more_info": "https://www.twilio.com/docs/errors/21211",
  "status": 400
}

Could you please allow the + symbol in the phone number field. It will solve this

  • Photo of David Leigh

    1

    Dillan,

    If you haven't done so, you need to set up a Phone Country Code first.
    Edit the Defined Type "Phone Country Code" to add the correct code for your country.

    After this is done, look at the Mobile Number for the Person you are sending the SMS to.
    You should be able to select the Country Code prefix for the number from a drop-down list.
    This is the number that will be sent as the "+" portion of the number to Twilio.

    Hope this helps.

     

  • Photo of Arran France

    0

    Hey Dillian,

    I'm internationally based (UK) and I can send SMS using Twilio just fine. Can you confirm that the number you are trying to send a SMS to has the "country code" set to the correct value?

    Arran