### Answer
To connect Twilio with Retell AI, you'll need to set up SIP trunking using Elastic SIP Trunks. Here's the step-by-step process:
## Step 1: Create Elastic SIP Trunking in Twilio
First, go to your Twilio account and search for "SIP trunk" in the search bar [(1) ](
) . Select "Elastic SIP Trunks" and create a new SIP trunk . Give it a name and ensure both "code transfer" and "Enable PSTN Transfer" are enabled .
## Step 2: Configure Termination (for outbound calls)
Set up the termination SIP URI - this is important for later steps [(2) ](
) . You might want to use a localized termination URI near your region . For authentication, you can either whitelist IP addresses or create credentials with username and password .
If using credentials, create them with a strong password (at least 12 characters, uppercase, lowercase, special symbol, and digit) [(3) ](
) .
## Step 3: Configure Origination (for inbound calls)
Set up origination by specifying Retell's SIP server address as the origination SIP URI:
sip:5t4n6j0wnrl.sip.livekit.cloud
[(2) ](
) .
## Step 4: Move Numbers to Your SIP Trunk
Purchase numbers or move existing numbers to your elastic SIP trunk [(1) ](
) [(2) ](
) .
## Step 5: Import Numbers to Retell
In your Retell Dashboard, go to Phone Numbers and click the plus icon [(4) ](
) . Select "connect your number through SIP trunking" . Paste the complete number with plus symbol and country code .
Enter your termination URI from Twilio (ensure no spaces or unexpected characters) . If you set up credentials, provide the username and password .
## Common Issues
- **