13248: Dial: Invalid callerID, too long
VOICE
WARNING
Twilio raises this warning when the callerId attribute on <Dial> contains more characters than the caller ID value Twilio accepts for the destination you are dialing. Use a valid phone number for <Number>, a valid client identifier for <Client>, or an allowed caller ID string for <Sip>. For SIP dialing, callerId can contain alphanumeric characters and the optional characters +, -, _, and ., with no whitespace.
- You set
callerIdto a phone number that exceeds the maximum length for E.164 numbers. E.164 numbers can contain up to 15 digits. - You are dialing a
<Client>and the client identifier used ascallerIdis longer than 256 characters. - The
callerIdvalue does not match the type of destination you are dialing.<Dial>expects a phone number for<Number>, a client identifier for<Client>, or an allowed SIP caller ID string for<Sip>. Using a longer display string or other nonstandard value can trigger this warning.
- If you are dialing a phone number with
<Number>, setcallerIdto a valid E.164 phone number and keep it within 15 digits. Use only a Twilio number on your account, the inboundToorFromnumber when allowed, or a phone number you verified with Twilio. - If you are dialing a
<Client>, shorten the client identifier to 256 characters or fewer. Remove spaces, control characters, delimiters, and unwise characters. If you use a mobile Voice SDK identity, use only alphanumeric characters and underscore. - If you are dialing a
<Sip>endpoint, replace thecallerIdvalue with a simple caller ID string that contains only alphanumeric characters and the optional characters+,-,_, and., with no whitespace. - Validate and trim the
callerIdvalue before you return TwiML or create the call. This helps prevent extra characters from being passed into<Dial>.