https://retellai.com/?utm_source=discord&utm_medium=seo logo
what are the steps for setting up twilio integrati...
# ❓・ai-evy-support
n
@AI Evy what are the steps for setting up twilio integration?
a
Thanks for tagging me @nohitcrit. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, here are the steps for setting up Twilio integration with Retell AI: ## 1. Set Up Elastic SIP Trunking with Twilio **Create a SIP Trunk**: Log into your Twilio dashboard and create a new SIP trunk with a recognizable name and configure general settings as required [(1) ]() . ## 2. Configure Termination (Outbound Calls) Specify the termination SIP URI provided by your Twilio provider . Choose between IP whitelisting or credential-based authentication : - **IP Whitelisting**: If Twilio requires IP whitelisting, ensure that all necessary IP ranges are whitelisted - **Credentials**: If using credentials, note the username and password for later use ## 3. Configure Origination (Inbound Calls) Set Retell AI's SIP server address as the origination SIP URI:
sip:5t4n6j0wnrl.sip.livekit.cloud
. For toll-free numbers, specify the transport protocol by using:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp
. ## 4. Assign Numbers to the SIP Trunk Purchase new numbers or migrate existing ones to the configured SIP trunk within your Twilio platform . ## 5. Import Numbers into Retell AI Access the Retell AI dashboard and navigate to the phone numbers section . Initiate the import process and provide the following details : - **Termination SIP URI**: The URI configured during the SIP trunk setup - **Authentication Credentials**: If applicable, enter the username and password established earlier Alternatively, use Retell AI's API to import numbers programmatically . ## 6. Configure Voice Agents Within the Retell AI dashboard, create and customize AI voice agents according to your business requirements . Assign the imported phone numbers to the corresponding voice agents to handle inbound and outbound calls . ## 7. Test the Integration -
**Inbound Calls**: Place a call to the imported number and verify that the assigned AI voice agent responds appropriately - **Outbound Calls**: Use Retell AI's interface or API to initiate outbound calls, ensuring successful connections and correct agent interactions **Important Note**: To link numbers from Twilio, you don't hit an endpoint directly - you create a trunk in Twilio and link it in Retell using SIP trunking [(2) ]() .
​ To learn more, see the sources I considered: [[1] 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) [[2] Issue integrating Twilio inbound calls with retell ai agent (404 on webhook)](https://discord.com/channels/1186424376300679209/1407367554938175629) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
have been troubleshooting a failing Twilio SIP trunk connection. All calls result in a "400 Bad Request" error and a busy signal. I have now completed every single configuration step on both Twilio and within the Retell dashboard. Your platform now correctly shows my phone number linked to my agent, but the calls are still failing with the same error. I can do an outbounbd call from Retall to my # just not inbound has busy signal This appears to be a backend issue on your platform. Can you please investigate why your SIP server is rejecting calls for my correctly configured agent? Example Failed Twilio Call SID: CA7725dc7f7104683884ec2d15efdd60fd I have attached a screenshot from your dashboard showing the number is now linked to my agent. https://cdn.discordapp.com/attachments/1411063299306426510/1411082631298285658/image.png?ex=68b35c9b&is=68b20b1b&hm=94b7208ba5634e09b5d5b61119b23146d9e5989099f31aa7edf26203c65b999c&
Here is the call log twill shows. just get busy signal but I can make a call from the agent to my cell and that connects. https://cdn.discordapp.com/attachments/1411063299306426510/1411086010867257424/image.png?ex=68b35fc1&is=68b20e41&hm=85457d60d6f667f38ae9fbf9d470dc8279eeb6bd66002ec2d90a604e39eec945&
im going to test blandi.ai while I wait for a response.
n
Just an fyi since you posted on my support thread talking to retell support, I do not work for retell. I am a user of retell who is checking it out as of yesterday because my company is getting tired of hallucinations on bland.
I will say though, the support on their discord server is leagues better than here.
If you have questions about bland though, these guys'll help you out: https://discord.gg/8fdhUP7u
When I look at my logs instead of the agent in the "To" column, I'm seeing
+1{the phone number}@5t4...
I'm thinking that's the source of your issue. Hope it helps and you have a wonderful weekend!