https://retellai.com/?utm_source=discord&utm_medium=seo logo
We have Twilio dialing your SIP server with:<Sip u...
# ❓・ai-evy-support
d
@AI EvyWe have Twilio dialing your SIP server with: sip:+19786438778@sip.retellai.com;transport=tls Twilio’s HTTP request to the TwiML Bin is 200 OK, but the resulting SIP leg to sip:+19786438778@sip.retellai.com;transport=tls comes back Busy (0 seconds). Your “Connect to your number via SIP trunking” UI is also returning ‘Internal Server Error’ for this number. Can you: Confirm that +1 978 643 8778 is correctly mapped on your SIP side, Confirm the expected SIP URI format (do you expect sip:+19786438778@sip.retellai.com or something else?), Confirm that username bci_sip_user and password bci_SECURE_7788 are configured on your side (or tell us what credentials we should use instead)?
a
Thanks for tagging me @drdrew_27872. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation: - The expected SIP URI format for connecting Twilio to Retell AI’s SIP server is sip:sip.retellai.com; for TLS, use sip:sip.retellai.com;transport=tls. The user portion (before @) is not explicitly documented as being the E.164 number (e.g., +19786438778) , so using sip:+19786438778@sip.retellai.com;transport=tls is a reasonable approach for inbound dialing, but the official docs do not confirm this exact format for all providers. Retell’s SIP server supports UDP, TCP, and TLS transports, with the documented TLS URI as sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tls [(1) ]() , [(2) ]() . - For inbound calls to work, the number must first be imported into Retell AI, mapped to an agent, and configured in your SIP trunk provider (Twilio) to point to Retell’s SIP server [(1) ]() , [(2) ]() , [(3) ](

▾

) . If the number is not properly imported or mapped in Retell, you may see errors or rejected calls. - Regarding credentials: If you use credential-based authentication, you must specify the username and password both in Twilio and when importing the number into Retell AI [(2) ]() , [(3) ](

▾

) . Retell does not auto-provision SIP usernames or passwords for your trunk; you provide these when importing the number and setting up the trunk. There is no documentation confirming that “bci_sip_user” and “bci_SECURE_7788” are configured on the Retell side unless you set them up during the import process. - For “Internal Server Error” in the UI or Busy on the SIP leg: This typically indicates an issue with the number not being fully imported or ma
pped in Retell, or a misconfiguration in the SIP trunk/termination/origination settings [(1) ]() , [(2) ]() , [(4) ]() , [(3) ](

▾

) . Check that the number is imported in Retell and correctly linked to the proper agent. If you need to change the configuration, you must delete and re-import the number [(1) ]() . - If you encounter persistent issues, review your SIP trunk settings in Twilio for origination (to Retell) and termination (from Retell) , confirm your credentials, and ensure the number is visible and mapped in the Retell dashboard. Also, check the logs in both Twilio and Retell for more detailed error messages [(2) ]() , [(4) ]() . If you need further confirmation or troubleshooting, you may want to reference these guides: - [Custom Telephony Overview]() - [Twilio SIP Trunking Setup]() - [Debug outbound connection issues]()
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[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] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.