https://retellai.com/?utm_source=discord&utm_medium=seo logo
I’m having issues with the SIP connection over TCP...
# ❓・ai-evy-support
b
@AI Evy I’m having issues with the SIP connection over TCP — it seems that when it receives the session start, Retell doesn’t respond with an ACK. Because of that, my SIP side sends a BYE and the call ends after several attempts of sending OK without getting an ACK back from Retell.
a
Thanks for tagging me @beginner1239420. I'll look through relevant sources and get back to you shortly.
### Answer --- This issue with missing ACK responses has been reported by other users. Based on community discussions, there are a few things to check: SIP Signaling Behavior One user observed that Retell/LiveKit operates in "early media mode" — after sending
100 Trying
and
180 Ringing
, media (RTP) starts flowing immediately without a formal
200 OK
being sent. [(1) ]() This means some SIP implementations expecting a standard
200 OK
→
ACK
flow may not work correctly. Transport Configuration Ensure you're using TCP transport correctly. For TCP, the SIP server URL should be: [(2) ]()
Copy code
sip:sip.retellai.com;transport=tcp
Known Compatibility Notes - One community member noted that "LiveKit uses
transport=tcp
- or it won't work" and mentioned that "some SIP servers will not accept the fact they return the ACK for 200 OK from a different host." [(1) ]() - Another user resolved a similar "no 200 OK" issue by switching to TCP transport. [(3) ]() Recommendations 1. Verify your SIP client/server is configured to handle early media scenarios where RTP may start before
200 OK
2. Confirm TCP transport is explicitly set on both sides 3. Check if your SIP implementation has
rport
enabled 4. Review your telephony provider logs for more details on the SIP exchange [(2) ]() If you're using a custom telephony setup and the issue persists, you may want to check with your telephony provider or consider using one of the supported providers like Twilio, Telnyx, or Vonage which have documented integration guides.
​ To learn more, see the sources I considered: [[1] Dialing SIP endpoint: sip:{call_id}@5t4n6j0wnrl.sip.livekit.cloud doesn't answer](https://discord.com/channels/1186424376300679209/1377455289233707070) [[2] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[3] SIP Call Not Connecting — No 200 OK Response from Server](https://discord.com/channels/1186424376300679209/1372412288073465957) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @beginner1239420. I'll get back to you soon.
### Answer ¡Hola! 👋 Soy un asistente de IA con conocimientos sobre Retell AI. ¿En qué puedo ayudarte hoy? Si tienes preguntas sobre la conexión SIP sobre TCP que mencionaste anteriormente, o cualquier otra consulta relacionada con Retell AI, estaré encantado de asistirte.
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy The thing is, we see the INVITE from Retell, then several OKs go out, but Retell never replies with an ACK.
a
Thanks for the follow-up, @beginner1239420. I'll get back to you soon.
### Answer --- This "no ACK after 200 OK" issue has been reported by other users with custom SIP setups. [(1) ]() What's likely happening: Based on community reports, Retell (via LiveKit) may be operating in early media mode where RTP media starts flowing after
180 Ringing
without waiting for a formal
200 OK
/
ACK
exchange. [(2) ]() This can cause compatibility issues with SIP endpoints expecting strict RFC 3261 compliance. Key points to check: 1. Transport method — Ensure you're explicitly using TCP. The SIP server URL should be:
Copy code
sip:sip.retellai.com;transport=tcp
[(3) ]() 2. IP whitelisting — Verify traffic from Retell's IP block is allowed:
18.98.16.120/30
(all regions) ,
143.223.88.0/21
(US only) ,
161.115.160.0/19
(US only) . 3. Known limitation — A community member noted that "some SIP servers will not accept the fact they return the ACK for 200 OK from a different host." [(2) ]() Troubleshooting steps: - Capture a PCAP trace on your SIP endpoint to see the full signaling exchange [(1) ]() - Check if your NAT configuration or firewall may be blocking return traffic - Review if your SIP device is configured with maximum retransmissions If you continue having issues, Retell recommends checking logs in your telephony provider and potentially opening a ticket with them. [(3) ]() ---
​ To learn more, see the sources I considered: [[1] ACK not received from the SIP endpoint](https://discord.com/channels/1186424376300679209/1375863660370595881) [[2] Dialing SIP endpoint: sip:{call_id}@5t4n6j0wnrl.sip.livekit.cloud doesn't answer](https://discord.com/channels/1186424376300679209/1377455289233707070) [[3] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @beginner1239420. I'll get back to you soon.
b
@AI Evy how can I make sure do this Transport method — Ensure you're explicitly using TCP. The SIP server URL should be: sip:sip.retellai.com;transport=tcp once I`m not from retell?
a
### Answer --- The TCP transport setting is configured on your side (your telephony provider or SIP infrastructure) , not within Retell. Here's how: For inbound calls to Retell: You configure the origination SIP URI in your telephony provider's SIP trunk settings to point to Retell with TCP transport specified. [(1) ]() The URI should be:
Copy code
sip:sip.retellai.com;transport=tcp
Where to set this depends on your provider: - Twilio: In your elastic SIP trunk, under the Origination settings, set the origination SIP URI to
sip:sip.retellai.com;transport=tcp
. [(2) ]() , [(3) ]() - Telnyx: Under the Inbound Setting of your elastic SIP trunk, select
TCP
as the transport method. [(4) ]() For outbound calls from Retell: Your termination settings in your telephony provider must also support TCP. When Retell sends calls to your provider, the transport is determined by your SIP trunk's termination configuration. [(1) ]() Summary: The
transport=tcp
parameter goes in your origination URI setting within your SIP trunking provider's configuration — this tells your provider how to route inbound calls to Retell. , [(3) ]()
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Twilio](https://docs.retellai.com/deploy/twilio) [[3] Calls are radomly not coming into retell.](https://discord.com/channels/1186424376300679209/1437522943898030212) [[4] Telnyx](https://docs.retellai.com/deploy/telnyx) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy The transport=tcp parameter goes in your origination URI setting within your SIP trunking provider's configuration — this tells your provider how to route inbound calls to Retell. , (3) The transport=tcp is not going, what is coming is
a
Thanks for the follow-up, @beginner1239420. I'll get back to you soon.
### Answer --- If you're seeing
<IP;lr>
instead of
transport=tcp
in the SIP headers, this indicates your SIP provider or PBX is overriding or not preserving the transport parameter you configured. The issue is on your telephony infrastructure side, not Retell's. Retell supports TCP, UDP, and TLS transports for inbound calls. [(1) ]() What you need to verify: 1. Origination URI format — Your SIP trunk's origination URI pointing to Retell should explicitly be:
Copy code
sip:sip.retellai.com;transport=tcp
2. Your SIP proxy/PBX behavior — The
<IP;lr>
you're seeing suggests your SIP infrastructure is stripping the transport parameter or replacing the URI with a loose-routing (
lr
) format. This is a configuration issue in your SIP server/proxy that's modifying the Route or Contact headers before sending to Retell. Troubleshooting steps: - Check your SIP proxy/PBX configuration to ensure it's not rewriting the Request-URI or stripping transport parameters - Verify the outbound proxy settings aren't overriding the destination URI - Capture a PCAP on your SIP endpoint to see exactly what's being sent in the INVITE to Retell If you're using Twilio, the origination SIP URI is set in the elastic SIP trunk under Origination settings — ensure it's set to
sip:sip.retellai.com;transport=tcp
. [(2) ]() , [(3) ]() The
transport=tcp
must be preserved in the actual SIP INVITE sent to Retell for TCP transport to work properly. [(1) ]()
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Twilio](https://docs.retellai.com/deploy/twilio) [[3] Calls are radomly not coming into retell.](https://discord.com/channels/1186424376300679209/1437522943898030212) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @beginner1239420. I'll get back to you soon.
### Answer Based on your thread, here's a summary of what's likely going wrong: The Core Problem: Your SIP infrastructure is sending
200 OK
responses to Retell, but Retell is not sending back an
ACK
. Your SIP side then sends
BYE
after multiple retransmissions, ending the call. [(1) ]() Likely Causes: 1. Transport parameter not reaching Retell — You mentioned seeing
<IP;lr>
instead of
transport=tcp
in the SIP headers. This means your SIP proxy/PBX is stripping or rewriting the transport parameter before it reaches Retell. 2. Early media mode behavior — A community member resolved a similar "no 200 OK" issue by switching to TCP transport. [(2) ]() What needs to happen: The SIP INVITE that arrives at Retell must contain
transport=tcp
in the URI. For TCP, the SIP server URL needs to be
sip:sip.retellai.com;transport=tcp
. [(1) ]() Where to look: - Your SIP proxy/PBX is modifying the Request-URI or Route headers - Check if an outbound proxy is overriding the destination URI - Verify your SIP trunk origination settings preserve the
transport=tcp
parameter Recommended action: Capture a PCAP trace on your SIP endpoint to see exactly what's being sent in the INVITE to Retell. Compare what you configure vs. what actually arrives at
sip.retellai.com
. The discrepancy (
<IP;lr>
instead of
transport=tcp
) points to your local SIP infrastructure rewriting the URI. If you're using Telnyx, select
TCP
as the transport method under the Inbound Setting of your elastic SIP trunk. [(2) ]()
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] SIP Call Not Connecting — No 200 OK Response from Server](https://discord.com/channels/1186424376300679209/1372412288073465957) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @beginner1239420. I'll get back to you soon.
### Answer Based on your thread, you're using Telnyx as your SIP provider. Here's where to select TCP: In Telnyx — Inbound Setting of your Elastic SIP Trunk: Select
TCP
as the transport method. [(1) ]() The Telnyx setup steps are: 1. Under **Inbound Setting**: - Select
+E.164
as the number format - Select
G722
,
G729
,
OPUS
as the codec - Select
TCP
as the transport method
(UDP temporarily not supported due to a connectivity issue) - Select your SIP region This ensures inbound calls from Telnyx to Retell use TCP transport. For the origination URI pointing to Retell, use: [(2) ]()
Copy code
sip:sip.retellai.com;transport=tcp
​ To learn more, see the sources I considered: [[1] Telnyx](https://docs.retellai.com/deploy/telnyx) [[2] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy This "no ACK after 200 OK" issue has been reported by other users with custom SIP setups. (1) What's likely happening: Based on community reports, Retell (via LiveKit) may be operating in early media mode where RTP media starts flowing after 180 Ringing without waiting for a formal 200 OK / ACK exchange. (2) This can cause compatibility issues with SIP endpoints expecting strict RFC 3261 compliance. Key points to check: Transport method — Ensure you're explicitly using TCP. The SIP server URL should be: sip:sip.retellai.com;transport=tcp (3) If my SIP server (Asterisk) is operating with strict RFC 3261 compliance, what do you recommend I adjust or configure to ensure full compatibility with Retell’s SIP early-media behavior and ACK handling?
a
Thanks for the follow-up, @beginner1239420. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] SIP Call Not Connecting — No 200 OK Response from Server](https://discord.com/channels/1186424376300679209/1372412288073465957) ​
### Answer --- The available Retell AI documentation doesn't provide specific Asterisk configuration guidance for handling early media scenarios. However, based on what's documented: What Retell supports: Transport methods: TCP (Recommended) , UDP, TLS [(1) ]() For TCP, the SIP server URL needs to be
sip:sip.retellai.com;transport=tcp
General direction for Asterisk: Since Retell may operate with early media where RTP flows before the formal
200 OK
/
ACK
exchange, you'd typically need to configure Asterisk to: 1. Accept and process early media (progress inband) 2. Not strictly require ACK before establishing media path 3. Handle
183 Session Progress
with SDP for early media scenarios However, I don't have specific Asterisk configuration examples or parameters in the Retell documentation to provide exact settings. Recommendation: If the issue persists after ensuring TCP transport is properly configured, the documentation suggests checking logs in your telephony provider and potentially opening a ticket with them. One user resolved a similar connection issue by switching to TCP transport. [(2) ]() Would you like a general answer based on common Asterisk early-media configurations, or would you prefer to reach out to Retell support directly for Asterisk-specific guidance?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.