https://retellai.com/?utm_source=discord&utm_medium=seo logo
URGENT: SRTP Not Working with Twilio Secure Trunki...
# ❓・bug-report
i
RetellAI docs say SRTP is supported (see screenshot) but when I enable Twilio Secure Trunking to enforce SRTP: Call reaches RetellAI ✓ Media negotiation fails immediately ✗ Call drops in 2 seconds ✗ Config: TLS endpoint: sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tls Works fine WITHOUT Secure Trunking (but uses unencrypted RTP) Need SRTP for GDPR healthcare compliance. Blocking launch this week. Has anyone successfully enabled Twilio Secure Trunking with RetellAI? https://cdn.discordapp.com/attachments/1437900153502699624/1437900153905483797/image.png?ex=6914ec5f&is=69139adf&hm=8b52d85c4d4a5a6574993ea23ac3aec9523b9035aba93b81aa51417be17611ef&
c
can you show any logs that can help us investigate
i
Hi Colin, Here are the logs from a failed secure trunking attempt: Twilio Side: - Call SID: CAf447ba1705a4debcd5d34a8f385a2702 - Trunk SID: TKbd54e67461b189f3ff6c07a9a445e63f - Timestamp: 2025-11-11 21:38:07 GMT - Duration: 1 second - To: sip:+447401296098@5t4n6j0wnrl.sip.livekit.cloud;transport=tls RetellAI Side: - Call ID: call_2cdac04328a6abf264c906744d3d - Timestamp: 2025-11-11 21:38:08 GMT - Disconnection reason: "User_hangup" - Duration: 1 second Key observations: - Call connects (TLS handshake succeeds) - No codec information in Twilio metrics (suggests media negotiation failed) - Drops after 1 second - RetellAI logs show clean call flow but immediate disconnect There's a PCAP download available in Twilio - should I try to download it or do you have backend access?
Colin, I tested the API directly and found the issue. When importing a number with port 5061, the API response shows: "transport":"TCP" This is the problem. For Twilio Secure Trunking to work, I need: "transport":"TLS" Questions: 1. Is there a way to set transport to TLS (not TCP)? 2. If not, is this on your roadmap? 3. What's the timeline? API response attached. {"phone_number":"+4474012960XX","phone_number_type":"custom","phone_number_pretty":"+4474012960XX","last_modification_timestamp":1762897952102,"custom_sms_enabled":false,"creation_timestamp":1762897952102,"sip_outbound_trunk_config":{"termination_uri":"bramfoxxxx.pstn.twilio.com:5061","transport":"TCP","auth_username":""}}