Vyyy
05/28/2026, 12:32 AMAI Evy
05/28/2026, 12:32 AMAI Evy
05/28/2026, 12:32 AMsip:sip.retellai.com (for inbound calls)
- Authentication credentials or IP whitelisting for Retell's CIDR block 18.98.16.120/30
2. Move your Twilio numbers to the SIP Trunk
Transfer the phone numbers you want to use into your Elastic SIP Trunk in Twilio .
3. Import numbers programmatically via API [(1) ]()
Use the Import Phone Number API to bulk import. Here's the code example:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'],
}) ;
const phoneNumberResponse = await client.phoneNumber.import({
phone_number: '+14157774444',
termination_uri: 'someuri.pstn.twilio.com',
}) ;
console.log(phoneNumberResponse.last_modification_timestamp) ;
For bulk importing, you'll need to loop through your list of numbers and call this API for each one, providing:
- phone_number in E.164 format
- termination_uri from your Twilio Elastic SIP Trunk
- Optional: sip_trunk_auth_username and sip_trunk_auth_password if using credential-based auth
Each imported number will then appear in your Retell dashboard and can be used for making and receiving calls [(2) ]() .AI Evy
05/28/2026, 12:32 AMAI Evy
05/28/2026, 12:32 AM