https://retellai.com/?utm_source=discord&utm_medium=seo logo
Currently, I'm forwarding calls to a mobile phone
# ❓・ai-evy-support
k
@AI Evy Currently, I'm forwarding calls to a mobile phone. I'd like to forward them via SIP provided by Twilio.
a
Thanks for tagging me @killiansantos. I'll look through relevant sources and get back to you shortly.
### Answer To forward calls via Twilio SIP trunking to Retell AI, you'll need to set up Elastic SIP Trunking. Here's the process: 1. Create an Elastic SIP Trunk in Twilio [(1) ]() - Create a trunk and configure general settings - Set up termination (for outbound calls) — note the termination SIP URI for later - Set up origination (for inbound calls) — use Retell's SIP server address:
sip:sip.retellai.com
[(2) ]() , [(1) ]() 2. Configure Authentication - Whitelist IP addresses or create credentials (username/password) - Retell's IP block for traffic:
18.98.16.120/30
(All regions) ,
143.223.88.0/21
(United States only) ,
161.115.160.0/19
(United States only) [(2) ]() 3. Move/Purchase Numbers to the SIP Trunk [(1) ]() 4. Import the Number to Retell , [(3) ](

▾

) - Provide the termination SIP URI from Step 1 - If using credential authentication, supply the username and password - You can import via the dashboard or programmatically via the Import Number API Transport Options Supported: TCP (recommended) , UDP, TLS [(2) ]() For a step-by-step video walkthrough, see [Retell AI - Connect to your own Twilio - Using Sip Trunking](

▾

) [(3) ](

▾

) Note: If you're forwarding from a mobile number to Twilio and then to Retell, some users have reported needing additional webhook configuration for the call to properly reach the agent after forwarding [(4) ]() .
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) [[2] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[3] Retell AI - Connect to your own Twilio - Using Sip Trunking](

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

) [[4] Forward my mobile number to retell ai via SIP trunkink](https://discord.com/channels/1186424376300679209/1322290041715822685) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
@AI Evy I want to transfer Retell calls to Twilio via SIP
a
Thanks for the follow-up, @killiansantos. I'll get back to you soon.
### Answer To transfer calls from Retell AI to a destination via Twilio SIP, you can use the call transfer feature with your SIP trunking setup. [(1) ]() Key Points: - Call transfer is supported with SIP trunking. If you intend to use SIP REFER (cold transfer with the transferee's number) , you need to configure your SIP trunking provider (Twilio) to allow SIP REFER and PSTN transfer, with the transferee's number showing as caller ID. - Custom SIP headers can be set for call transfers. Headers must start with
X-
. You can use dynamic variables for SIP header values to pass information extracted from the call to the receiving party. [(2) ]() - Limitation with Twilio: For cold transfer with transferee number, Twilio does not honor custom SIP headers in the REFER request. This means SIP headers you set in the transfer call tool will not work for cold transfers with transferee number when using Twilio. Configuration in Twilio: When setting up your Elastic SIP Trunk, ensure you enable: [(3) ](

▾

) - Code transfer (enabled) - PSTN Transfer (checkbox enabled) Transfer Node/Function: - For Conversation Flow agents, configure the [call transfer node]() for more details. [(2) ]() - For Single/Multi-prompt agents, use the [call transfer function]() . If you need more control over the transfer logic (e.g., custom caller ID handling) , you may need to implement your own transfer logic using a custom function that interacts with your telephony provider. [(1) ]()
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) [[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.