### 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