https://retellai.com/?utm_source=discord&utm_medium=seo logo
Twilio Call transfer with Dial breaks when using "...
# ❓・bug-report
h
Hi Retell team, We're currently integrating with Retell using Method 2: Dial to SIP Endpoint, specifically connecting to:
sip:{call_id}@5t4n6j0wnrl.sip.livekit.cloud
The setup works great for initial AI conversations, but we're encountering a recurring issue when attempting to transfer the call using Twilio's verb. Problem: When we initiate a second to transfer the call to a human agent (e.g., a service advisor), the original SIP connection to Retell drops unexpectedly. This causes transfers to fail. We suspect this is because Twilio tears down the SIP leg to Retell when starting the new , and there’s no clean signaling to let Retell know the call is being transferred. Workaround: We tested using Twilio to add all participants (Retell, customer, human agent) into a shared room. This method works because it decouples the Retell leg from the transfer logic. Request: Can you confirm that Method 2 does not support transfer logic via sequential ? Is there an official recommendation for performing blind transfers when using the "Dial to SIP Endpoint" method? Let me know if logs, timestamps, or call SIDs would help in debugging this further. Thanks so much, Haroun Ansari
@sanava.ai @shahretell @Florian - support @ Retell AI @Weijia - Support@Retell please look into this. We have upset customers
s
try this: sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp
h
Thanks for the response. We do it but it doesnt work
Copy code
const dial = response.dial();
          dial.sip(
            `sip:${retellCallId}@5t4n6j0wnrl.sip.livekit.cloud;transport=tcp`,
          );
Just to be clear, we do connect just fine, the issue is when we use our custom telephony to do a transfer from twilio to the requested number
s
Did you enable geo permissions and have you verified the numbers you are transferring the call to?
h
Im not sure what geo permissions are, but I have verified the numbers in the sense that when I call them directly they work
s
On the left handside of your twilio dashboard you will see a tab called "verify caller id" where you need to verify your numbers via sms or phonecall
For geo permissions type "geo" in the twilio search bar there you will find it. Enable your country if its not enabled
In retell docs you will find more info about it
h
These are numbers bought through twilio though
do i still need to verify numbers I bought through twilio
s
oh ok if your numbers are all from twilio you dont need to verify them. But you still need geopermissions for all countries you are dealing with
h
they are all US
n
Well, you're using the wrong tool and the wrong approach. When you start a transfer using ReTell, it uses twilios REFER function. In such a case, the connection to ReTell is torn down as you described. What you need is an API based transfer, which your agent activate via a tool. I can show you how some of our customers are doing it. Please DM me for more information.