Switchmast

Twilio error 30006: landline or unreachable carrier

Updated

Short answer

30006 (Landline or unreachable carrier) means the destination can't receive your message. Usually the number is a landline; otherwise you sent from a short code that can't reach the recipient's carrier. Check the line type with Lookup, stop texting landlines, and give short codes a long-code fallback in a Messaging Service.

What Twilio says it means

Twilio's error reference names 30006 Landline or unreachable carrier, log type CARRIER, level ERROR. It's a delivery error: Twilio accepted the message, but the destination couldn't take it. It appears in the Console's messaging logs, in the Message resource's error_code, and in your StatusCallback requests as ErrorCode.

Common causes, most likely first

  1. The number is a landline. Landlines generally can't receive SMS.
  2. You sent from a short code and the destination carrier couldn't be reached with that sender.
  3. The line type doesn't suit SMS. The number is valid, but it's not a mobile: Lookup can return landline, mobile, fixed VoIP, non-fixed VoIP and other types.

How to check and fix it

  1. Find the failures. In the Console go to Monitor › Logs › Messaging, search by To number and open Message Details. In code, read status and error_code on the Message, or MessageStatus and ErrorCode in your status callback.
  2. Check the line type with Lookup v2 line type intelligence:
    GET https://lookups.twilio.com/v2/PhoneNumbers/{number}?Fields=line_type_intelligence
    The answer's line_type_intelligence.type says landline, mobile, fixedVoip, nonFixedVoip and so on. Prices are in our Lookup guide.
  3. Landline? Don't retry the same message to that number. Ask for a mobile number, or call instead.
  4. Short code? Add long codes to a Messaging Service alongside the short code so Twilio can fall back to a long code.
  5. Mobile number and no short code? Look at the neighbouring codes below: an unreachable phone usually shows as 30003, an unknown number as 30005.

How to prevent it

30006 vs similar errors

CodeTypeMeaning
30006CarrierLandline, or a short code that can't reach the carrier
21614Application'To' isn't a valid mobile number, raised against your request; most likely a landline
30003CarrierUnreachable handset: off, no signal, roaming
30005CarrierUnknown handset: the number may not exist
30007CarrierFiltered as spam by Twilio or the carrier

How Switchmast helps

Switchmast on iPhone showing one failed Twilio message with the error explained
One failed message in Switchmast, on sample data.

Open a 30006 in Switchmast and the message screen explains it in plain English and offers "Look up this number", which runs a Twilio Lookup from your phone so you can confirm a landline on the spot. More codes are on the Twilio error codes hub.

Questions

What does Twilio error 30006 mean?

Landline or unreachable carrier: the destination can't receive your message. Usually the number is a landline, or you sent from a short code and the destination carrier couldn't be reached with that sender.

Should I retry a 30006?

Not to the same number if Lookup says it's a landline: it won't start working. Send to a mobile number instead, or contact the person another way.

How do I avoid 30006 with a short code?

Add alternative senders, such as long codes, to a Messaging Service with your short code so Twilio can fall back to a long code when the short code can't reach a carrier.

Where does 30006 show up?

In the Console's messaging logs, in the error_code property of the Message resource, and in the ErrorCode parameter of your status callback requests.

Sources