https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to add number from twilio with sip trunking
# ❓・ai-evy-support
r
@AI Evy how to add number from twilio with sip trunking
a
Thanks for tagging me @rayg416. I'll look through relevant sources and get back to you shortly.
### Answer To add a number from Twilio using SIP trunking, follow these steps: ## 1. Create Elastic SIP Trunking in Twilio First, create an Elastic SIP Trunk in your Twilio console [(1) ](

▾

) [(2) ]() . Give it a name and configure these settings: - Enable code transfer [(1) ](

▾

) - Enable PSTN Transfer ## 2. Set Up Termination (Outbound) Create a Termination SIP URI in Twilio [(1) ](

▾

) [(2) ]() . This URI is important as you'll use it when importing the number to Retell AI [(2) ]() . Set up authentication by creating credentials with a username and password [(1) ](

▾

) [(3) ](

▾

) . Twilio requires passwords that are at least 12 characters long with uppercase, lowercase, special symbol, and digit [(3) ](

▾

) . ## 3. Set Up Origination (Inbound) Configure the Origination SIP URI with Retell AI's SIP server address:
sip:5t4n6j0wnrl.sip.livekit.cloud
[(4) ]() [(2) ]() . For toll-free numbers, use:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp
[(4) ]() . ## 4. Add Numbers to SIP Trunk In Twilio, add your existing numbers to the SIP trunk or purchase new ones [(1) ](

▾

) [(2) ]() . ## 5. Import Number to Retell AI In the Retell AI dashboard, go to Phone Numbers and click the plus icon [(5) ](

▾

3PV_R-Z1Y) . Select "connect your number through SIP trunking" [(5) ](

▾

) [(3) ](

▾

) . Provide these details [(6) ]() [(2) ]() : - Phone number in E.164 format (with + and country code) [(5) ](

▾

) [(6) ]() - Termination URI from your Twilio SIP trunk [(5) ](

▾

) [(2) ]() - Username and password credentials [(5) ](

▾

) [(6) ]() You can also import numbers programmatically via the Import Number API [(6) ]() [(2) ]() . ## 6. Test the Integration Test both inbound and outbound calls to verify the setup works correctly [(4) ]() . Once imported, the number will appear in your Retell AI dashboard and can be assigned to voice agents for handling calls [(5) ](

▾

) [(2) ]() .
​ To learn more, see the sources I considered: [[1] Retell AI - Connect to your own Twilio - Using Sip Trunking](

https://www.youtube.com/watch?v=JC3PV_R-Z1Y▾

) [[2] Twilio](https://docs.retellai.com/deploy/twilio) [[3] Retell AI - Connect to your own Twilio - Using Sip Trunking](

https://www.youtube.com/watch?v=JC3PV_R-Z1Y▾

) [[4] How to Choose the Right Telephony System in 2024 | Retell AI](https://www.retellai.com/blog/how-to-choose-the-right-telephony-system-in-2024) [[5] Retell AI - Connect to your own Twilio - Using Sip Trunking](

https://www.youtube.com/watch?v=JC3PV_R-Z1Y▾

) [[6] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.