blekkk_
12/01/2025, 1:35 AMAI Evy
12/01/2025, 1:35 AMAI Evy
12/01/2025, 1:35 AMAI Evy
12/01/2025, 1:35 AMAI Evy
12/01/2025, 1:35 AM"+14157774444" [(1) ]()
- **Incorrect**: "+1-415-777-4444" or "+1 415 777 4444" [(4) ]()
When making outbound calls, both from_number and to_number must be in E.164 format: [(1) ]() [(3) ]()
javascript
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
}) ;
[(5) ]()
For batch calls, ensure your CSV includes phone numbers in E.164 format in the "phone number" column. [(2) ]() If you need to bypass E.164 validation (only when using custom telephony) , add a column named ignore e164 validation with value true.
**blekkk_
12/01/2025, 1:40 AMAI Evy
12/01/2025, 1:40 AM"+14157774444" [(2) ]()
- The format must include the "+" symbol [(1) ]()
If you're working with batch calls and have phone numbers that aren't in E.164 format, you can add a column named ignore e164 validation with value true in your CSV, but this only applies when using custom telephony, not Retell Telephony [(4) ]() [(5) ]() .
For converting local format numbers to E.164, you'll need to handle this conversion in your own code before making API calls to Retell AI. This typically involves:
1. Adding the country code prefix
2. Removing any formatting characters (spaces, dashes, parentheses)
3. Adding the "+" prefix
Would you like guidance on how to implement phone number conversion in your specific programming environment?
**AI Evy
12/01/2025, 1:40 AMAI Evy
12/01/2025, 1:40 AMAI Evy
12/01/2025, 1:40 AMblekkk_
12/01/2025, 1:40 AMblekkk_
12/01/2025, 1:41 AMAI Evy
12/01/2025, 1:41 AMAI Evy
12/01/2025, 1:41 AM"+14157774444" [(1) ]() [(2) ]()
### Conversion Approach
You'll need to implement conversion logic that:
1. Identifies the country code (if not present)
2. Removes formatting characters (spaces, dashes, parentheses)
3. Adds the "+" prefix
4. Combines country code + area code + number
### Example Implementation (JavaScript/Node.js)
javascript
// Example conversion function
function convertToE164(phoneNumber, defaultCountryCode = '1') {
// Remove all non-numeric characters
let cleaned = phoneNumber.replace(/\D/g, '') ;
// Add country code if not present
if (!cleaned.startsWith(defaultCountryCode) ) {
cleaned = defaultCountryCode + cleaned;
}
// Add + prefix
return '+' + cleaned;
}
// Usage with Retell AI
const localNumber = '(415) 777-4444';
const e164Number = convertToE164(localNumber, '1') ;
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+14157774444',
to_number: e164Number,
}) ;AI Evy
12/01/2025, 1:41 AMAI Evy
12/01/2025, 1:41 AMignore e164 validation with value true in your CSV [(2) ]()
However, it's best practice to convert numbers to E.164 format before uploading.
**AI Evy
12/01/2025, 1:41 AM