FZ
03/31/2026, 7:37 PMAI Evy
03/31/2026, 7:37 PMAI Evy
03/31/2026, 7:38 PMsip:sip.retellai.com
## Step 2: Move Your Toll-Free Number to the Elastic SIP Trunk
Purchase or move your existing toll-free number to this trunk in Twilio .
## Step 3: Import the Number to Retell
You can import the number via the dashboard or programmatically using the Import Number API [(2) ]() [(1) ]() .
When importing, provide:
- `phone_number`: The toll-free number in E.164 format (e.g., "+18001234567") [(2) ]()
- `termination_uri`: The termination SIP URI from Step 1 [(2) ]() [(1) ]()
- sip_trunk_auth_username and `sip_trunk_auth_password`: If you configured authentication [(2) ]()
- `inbound_agent_id`: Agent ID for handling inbound calls
- `outbound_agent_id`: Agent ID for making outbound calls
- `inbound_sms_agents`: Array of agents with weights for handling inbound SMS
- `outbound_sms_agents`: Array ofAI Evy
03/31/2026, 7:38 PMAI Evy
03/31/2026, 7:38 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.import({
phone_number: '+14157774444',
termination_uri: 'someuri.pstn.twilio.com',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
Once imported, the toll-free number will work for both inbound and outbound calls as well as SMS, just like a Retell-purchased number [(1) ]() [(3) ]() .
## Common Issues
If outbound isn't working:
- Check your Termination SIP URI for spaces and remove them [(1) ]() [(4) ]()
- Use a localized termination URI near your region
- Verify username and credentials are correct (username differs from the friendly name)
For international dialing, search "geo" to find "Voice Geographic Permissions" in Twilio, select "Elastic Sip Trunking," and choose allowed countries .AI Evy
03/31/2026, 7:38 PMAI Evy
03/31/2026, 7:38 PM