https://retellai.com/?utm_source=discord&utm_medium=seo logo
I have followed the Twilio steps outlined here htt...
# ❓・ai-evy-support
l
@AI Evy I have followed the Twilio steps outlined here

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

and https://docs.retellai.com/deploy/twilio but I'm getting the following error: Error Invalid termination URI: localhost/retell uri is not allowed. What is going wrong?
a
Thanks for tagging me @liamo0083. I'll look through relevant sources and get back to you shortly.
### Answer The error "Invalid termination URI: localhost/retell uri is not allowed" is happening because Twilio requires a valid, publicly accessible SIP termination URI for outbound calls—using localhost or any non-public address is not permitted [(1) ]() [(2) ](

▾

) [(3) ](

▾

) . You need to provide a proper SIP termination URI from your Twilio Elastic SIP Trunk configuration (e.g., something like yourtrunk.pstn.twilio.com) , not a localhost or internal address . Update your configuration to use the correct SIP termination URI from Twilio as shown in the documentation and video walkthrough .
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) [[2] Retell AI - Connect to your own Twilio - Using Sip Trunking](

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

) [[3] Retell AI - Connect to your own Twilio - Using Sip Trunking](

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

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy The URL I'm using is XXXl.pstn.twilio.com
a
Thanks for the follow-up, @liamo0083. I'll get back to you soon.
### Answer If you are using a Twilio SIP Termination URI like XXXl.pstn.twilio.com, that format is correct for outbound calls with Retell AI, as long as it matches the actual URI provided in your Twilio Elastic SIP Trunk configuration and is not a placeholder or typo [(1) ]() [(2) ]() . Make sure: - The URI is copied exactly from your Twilio console (no extra spaces, no typos) . - You use a localized URI if available for your region [(1) ]() [(3) ]() . - You’ve set up authentication (IP whitelist or credentials) as required by your trunk settings [(1) ]() . - The number you are calling is enabled in your Twilio “Voice Geographic Permissions” if it’s international [(1) ]() [(3) ]() . If you are still getting errors, double-check that the URI is active in Twilio and that your trunk is configured for outbound calls. If the issue persists, confirm that the phone number is assigned to the trunk and imported into Retell with the correct termination URI [(1) ]() [(4) ]() [(5) ]() .
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) [[2] Sip endpoint](https://discord.com/channels/1186424376300679209/1392111369058517097) [[3] Hey everyone, I could use some help setting up international calls through Retell + Twilio.](https://discord.com/channels/1186424376300679209/1384845104132522024) [[4] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[5] 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
I found the issue, you CANNOT have the word "retell" in the Termination SIP URI.