articlessip-call-drops-32-seconds
SIP call drops after 32 seconds: the missing ACK
A SIP call that drops about 32 seconds after answer is almost always an INVITE whose 200 OK was never acknowledged, even if audio flows. The side that sent the 200 OK retransmits it, starting at T1 and doubling up to T2 (4 s), for 64×T1, which is 32 s with the default T1 of 500 ms (RFC 3261, section 17.1.1.1). Without an ACK by then it should end the session with a BYE (RFC 3261, section 13.3.1.4).
Where 32 seconds comes from
T1 estimates the round-trip time and defaults to 500 ms (RFC 3261, section 17.1.1.1). T2 defaults to 4 s (RFC 3261, section 17.1.2.2). The 64×T1 family includes Timer B for INVITE client transactions (RFC 3261, section 17.1.1.2), Timer F for non-INVITE transactions (RFC 3261, section 17.1.2.2), and Timer H for an INVITE server transaction awaiting an ACK to a 300-699 response (RFC 3261, section 17.2.1).
Logs and vendors often call the 32-second ACK timeout “Timer H”, which is accurate for an error response; for a 200 OK, the retransmission and BYE rule belongs to the UAS core and applies even over TCP, because other hops may use UDP (RFC 3261, section 13.3.1.4). RFC 6026 later added Timer L, also 64×T1, to the INVITE server transaction (RFC 6026, section 7.1).
With defaults, the schedule below has eleven 200 OK transmissions before the BYE, though exact timing varies by implementation.
Caller (UAC) Callee (UAS)
| INVITE -----------------> |
| <------------ 180 Ringing |
| <---------------- 200 OK | t = 0.0 s
| ACK ----X |
| <-------- 200 OK (retrans)| t = 0.5 s
| ACK ----X |
| <-------- 200 OK (retrans)| t = 1.5 s
| ACK ----X |
| <-------- 200 OK (retrans)| t = 3.5 s
| ACK ----X |
| <-------- 200 OK (retrans)| t = 7.5 s
| ACK ----X |
| <-------- 200 OK (retrans)| t = 11.5 s, then every 4 s
| ACK ----X |
| ... |
| <-------- 200 OK (retrans)| t = 31.5 s
| ACK ----X |
| <------------------- BYE | t = 32 s (64 x T1)
(ACK lost: wrong Contact / no Record-Route)
When the 200 OK itself is lost (cause 5), there are no ACKs at all in the trace.
Which side hangs up
The BYE comes from the element that sent the 200 OK and never saw its ACK: the callee UA, or the B2BUA/SBC leg facing the caller (RFC 3261, section 13.3.1.4). On an SBC, inspect that leg separately.
The caller’s ACK for a 2xx is its own request, sent end to end toward the
callee’s Contact through the dialog route set, rather than back along the
Via path (RFC 3261, sections 13.2.2.4 and 12.2.1.1). The caller takes
the remote target from Contact and reverses the response’s Record-Route
values to form that route set (RFC 3261, section 12.1.2). The INVITE and
200 OK can therefore work while the ACK gets lost.
Causes
- Unreachable
Contact. A private address (10.x,172.16-31.x,192.168.x, or CGNAT100.64-127.x) or wrong port directs the ACK somewhere it cannot arrive (RFC 3261, sections 12.1.1 and 12.1.2). The same address mistake in SDP causes one-way audio; inContactit breaks the ACK and later in-dialog requests. - Missing or unreachable
Record-Route. A NAT-handling proxy or SBC that omits it gets bypassed by the ACK and BYE (RFC 3261, section 16.6). A two-interface SBC can also record its inside address, unreachable from the caller’s side. - Transport or port mismatch.
Contactadvertises;transport=tcpor;transport=tls, or a port where the UA is not listening. Check for ACKs sent over UDP to a device listening only on TCP. - SIP ALG interference. Consumer routers and some firewalls rewrite
ContactorViaincorrectly, or drop in-dialog requests. Compare headers before and after the device. - Missing 200 OK at the caller. UDP response routing uses
Via(RFC 3261, section 18.2.2); withoutrport, the advertised port can miss the NAT binding (RFC 3581, section 1). Long ringing can outlast that binding (RFC 3581, section 3). A large UDP 200 OK with SDP can also be fragmented and lose fragments at a firewall. The caller usually still shows ringing or failure while the callee sees an answered call that drops.
How to check in a capture
Open the .pcap or .pcapng file in the SIP message parser, or paste the SIP messages from it. The parser lists each call as a ladder and runs in the browser (nothing is uploaded). Check in this order:
- Repeated identical 200 OKs, with the same
CSeqandTotag, about 0.5, 1, 2, 4, 4… s apart. - An ACK with the same
Call-IDand the INVITE’sCSeqnumber, and the address it was sent to. If the caller-side capture shows an ACK after every 200 OK, the caller is receiving the 200 OKs and its ACKs are being lost on the way (RFC 3261, section 13.2.2.4). If the caller shows no ACK at all, look at cause 5. - The 200 OK’s
ContactandRecord-Route: compare their addresses, ports and transports with the ACK’s destination. - The
Viareceivedandrportvalues. Withrport, UDP responses use the observed source address and port (RFC 3581, section 4). - The BYE around 32 s and its sender.
Capture both sides of the NAT/SBC if possible. An ACK leaving the caller but never arriving at the callee points at the path between them.
Fixes
- Advertise a reachable
Contact: public address or FQDN, correct port and transport (RFC 3261, section 12.1.1). - Make the NAT-handling proxy or SBC insert a reachable
Record-Routeso ACK and BYE pass through it (RFC 3261, section 16.6). - Align the advertised transport and port with the UA’s listener.
- Turn off the router or firewall’s SIP ALG; let the SBC or UA handle NAT.
- Enable
rport/ symmetric response routing (RFC 3581, section 4). - Keep NAT bindings open during long ringing: re-send the INVITE about every 20 s as suggested in RFC 3581, section 3. RFC 5626 defines CRLF and STUN keepalives for registered flows (section 3.5).
- Use TCP or a smaller SDP when a large UDP 200 OK is being fragmented.
Not the 32-second problem
A call that never connects and gets no response at all can fail after 32 s through Timer B. That is an INVITE setup timeout; after a provisional response, Timer B no longer ends the transaction (RFC 3261, section 17.1.1.2). The UA treats the transaction-layer timeout as a 408 Request Timeout (RFC 3261, section 8.1.3.1).
Session timer drops follow the negotiated Session-Expires when a refresh
re-INVITE or UPDATE fails. The shortest allowed session interval is 90 s
(RFC 4028, section 5), with 1800 s recommended (RFC 4028, section 4). The
side that does not refresh sends its BYE slightly before expiry (RFC 4028,
section 10), so a session-timer drop comes a minute or more after answer,
typically around 30 minutes with the recommended 1800 s interval.
RTP inactivity timeouts are PBX/SBC vendor settings. Their traces show a completed ACK; inspect the media path and configured inactivity limit.
Related: one-way audio in SIP (the same private-address problem in SDP instead of Contact), SIP 403 Forbidden, and the SIP response codes reference.