Calls drop after 30 seconds: the checks, in order

Reviewed

If calls drop after 30 seconds, or after 32, the cause is almost always an ACK that did not arrive. The call connects and both people can talk. Then the side that answered the call gives up waiting for its acknowledgement and hangs up. This guide takes the checks in the order that finds the fault fastest, and says what to look at if your calls end at some other time.

Why calls drop after 30 seconds

A SIP call is set up in three steps: an INVITE, a 200 OK to answer it, and an ACK to confirm that the answer arrived. The 200 OK can be lost on the way, so the side that sent it repeats it until the ACK arrives. RFC 3261 sets the repeats at a first gap of 500 milliseconds, doubling to a gap of 4 seconds, and says that after 64 times that first gap, which is 32 seconds, the side that answered should end the call with a BYE.

CallerAnswering side

  1. Caller to answering side: INVITE
  2. Answering side to caller: 200 OK, the call is answered0 s
  3. Caller to answering side, lost on the way: ACK, which never arrives
  4. Answering side to caller: 200 OK again0.5 s
  5. Answering side to caller: 200 OK again, every 4 seconds7.5 s
  6. Answering side to caller: BYE, the call ends32 s
A call that drops after 32 seconds. The answering side repeats its 200 OK until an ACK arrives, then gives up and ends the call.

The ACK for a 200 OK is not a reply that retraces the INVITE's path. It is a new request, sent to the address in the Contact header of the 200 OK. So the INVITE and the 200 OK can cross the network perfectly well, and the ACK can still go to the wrong place.

The checks, in order

  1. Find out who hung up. The side that sends the BYE is the side that sent the 200 OK. If your phone system hangs up, the ACK did not reach it. If the carrier hangs up, your phone system's ACK did not reach the carrier. That tells you which way to look.
  2. Capture one failing call on the phone system, with a tool such as Wireshark or sngrep, and look for the same 200 OK repeated at gaps of about half a second, one second, two seconds and then four, followed by a BYE about 32 seconds after the first.
  3. Find the ACK. On an outbound call it should leave your phone system moments after the 200 OK arrives. On an inbound call it should arrive moments after your phone system sends the 200 OK. If it is missing, capture again on the firewall's outside port to see which side of the firewall it disappears on.
  4. Read the Contact header of the 200 OK. If it holds a private address, the ACK is being sent to an address that does not exist outside your network. Set the phone system's external address or host name, and its local networks, in its NAT settings.
  5. Switch off any SIP ALG on the router and test again. It is the quickest single test. See SIP ALG.
  6. Allow the carrier's whole signalling range through the firewall, not the one address you saw in a capture, because the ACK may come from a different address from the INVITE. Check that the transport (UDP, TCP or TLS) that the Contact asks for is the one the firewall allows.
  7. Check any proxy or session border controller in the path. If it should add itself to the Record-Route header and does not, or adds a private address, the ACK skips it or never arrives.

Change one thing at a time and make a test call after each, so that you know which change worked.

If the call ends at some other time

The call ends after Look at
About 32 seconds The missing ACK, above
30, 60 or 120 seconds exactly A NAT or firewall mapping that expires, a timer that ends a call when no audio arrives for a set time (which is how a one way audio fault can end a call), or a timer at the carrier
90 seconds or more, often at half the session interval A session timer refresh that fails. RFC 4028 sets the minimum interval at 90 seconds, so a session timer cannot explain a drop at 30
After a quiet spell or a call on hold A mapping that expired because no packets kept it open

Questions people ask

Why 32 seconds and not 30?

Because the timer is 64 times 500 milliseconds, and people count by ear. The 32 seconds also start when the call is answered, not when it was dialled, so the figure you notice can be a little more or less.

Can both people hear each other until the call drops?

Yes, and that is the signature of this fault. Audio does not wait for the ACK, so the call seems fine right up to the BYE.

Is it my phone system or my carrier?

A capture on the phone system tells you. If the 200 OK is repeated and no ACK arrives, the loss is on the way in. If your ACK leaves and the carrier never sees it, the loss is on the way out. Take the capture to the carrier with the time of the call and they can check what they sent and received.

In Wafflr

Wafflr is a phone system in development, and it has not launched, so this section describes its console as it is being built. Its Diagnostics page captures the SIP messages that the system sends and receives while an administrator has a capture running. It lists each message with its time in milliseconds from the first and draws the call as a ladder diagram, with a column for each party and time running down the page. A capture is off until someone starts it, it stops itself after a set time, and starting and stopping it are written to the audit trail.