xavera23
10/17/2025, 7:46 AMAI Evy
10/17/2025, 7:46 AMAI Evy
10/17/2025, 7:46 AMsip:sip.retellai.com
2. Import your number to Retell using the Import Phone Number API [(2) ]() . You'll need to provide:
- Your phone number in E.164 format
- The termination URI from your SIP trunk provider
- SIP trunk authentication credentials (username and password)
Here's the code example for importing your number:
javascript
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) ;
For your Indonesian provider, you would replace the termination_uri with the URI provided by your local SIP trunking provider .
Key requirements:
- Your SIP trunk provider must support elastic SIP trunking [(1) ]()
- You need the termination URI for outbound calls [(2) ]()
- Authentication credentials (username/password) for your SIP trunk
Once imported, you can make outbound calls with your Indonesian number just like numbers purchased from Retell, and it will show up in your dashboard [(1) ]() .AI Evy
10/17/2025, 7:47 AMAI Evy
10/17/2025, 7:47 AM