How to Test for SIP ALG: Four Ways That Actually Confirm It

Quick answer. The fastest reliable test is a comparison: send the same SIP signaling through the router on port 5060, then on port 5062, and capture what arrives on the far side. If the 5060 copies of Via or Contact were rewritten — or never arrived — an ALG is active. The 32-second drop test gives you a strong hint in one phone call, and the free scanner on this site runs the port comparison for you.

The trap in ALG testing is trusting a single signal. The router’s admin page says ALG is off (firmware lies), a test call sounds fine (ALGs often mangle only in-dialog messages), and a reboot changes behavior. Use at least two of the methods below before you commit to a fix.

Method 1 — The 32-second call test (fastest hint)

Place a test call through the suspect router and let it run for a minute. If the call connects and then drops at exactly 32 seconds, repeatedly, you very likely have an ALG eating the ACK that confirms the call: the SBC’s Timer H (64×T1, per RFC 3261) expires 32 seconds after the 200 OK and tears the call down.

What to watch:

  • Drop at precisely 32s, every call → protocol timeout, almost certainly ALG (or something else corrupting in-dialog messages)
  • Drop at random intervals → look at jitter, loss, and NAT timeouts instead
  • One-way audio from the start → the ALG rewrote SDP; skip to the capture methods

This is a screening test, not proof — it can’t tell you which element mangled the message. For that you need eyes on the signaling.

Method 2 — Compare 5060 against 5062 (the conclusive diff)

SIP ALGs inspect the well-known signaling ports, 5060 and 5061, and ignore everything else. That gives you a built-in control group:

  1. Configure your SIP endpoint (or lab SBC) to register and make a call on 5060, through the suspect router.
  2. Capture on the far side of the router — the server or a laptop running tcpdump — not on the phone itself.
  3. Repeat the same registration and call on 5062.
  4. Compare the two captures.

On 5062 the Via and Contact headers should show the endpoint exactly as it sent them. On 5060, an active ALG shows up as:

# sent by the endpoint:
Via: SIP/2.0/UDP 10.0.0.14:5060;branch=z9hG4bK1ab2
Contact: <sip:2001@10.0.0.14:5060>

# captured on the far side (ALG active):
Via: SIP/2.0/UDP 73.12.8.44:5060;branch=z9hG4bK1ab2   ← public IP injected
Contact: <sip:2001@73.12.8.44:5060>                    ← rewritten
# ...or the ACK / in-dialog BYE simply never arrives

A rewritten Via isn’t always fatal — the ALG is trying to help — but a rewritten port, a missing ACK, or mangled SDP is your smoking gun. This port-comparison logic is exactly what our SIP ALG Port Scanner automates.

A quick tcpdump for the far side:

tcpdump -i any -n -s0 udp port 5060 or udp port 5062 -w algtest.pcap

Then read it with Wireshark’s Telephony → VoIP Calls, or drop the capture into pcap-to-ladder to get an instant call-flow diagram of who-said-what.

Method 3 — The free online scanner (no lab required)

When there’s no place to capture — the classic case is a home worker with a softphone and no access to anything but their own laptop — the VoipFlow SIP ALG Port Scanner does the comparison from our edge:

  1. Enter the worker’s public IP (or a hostname).
  2. The scanner probes SIP on 5060, 5061, and 5062 and examines the signaling that comes back.
  3. Rewriting on 5060/5061 with clean signaling on 5062 = ALG confirmed, and you know the port-5062 fix will work.

It’s free, no signup, no follow-up. It tests signaling behavior, which is what actually breaks — not just whether ports are open.

Method 4 — Check the router admin (necessary, never sufficient)

Log into the router and hunt for the setting: “SIP ALG”, “SIP passthrough”, “ALG”, sometimes buried under firewall levels or “advanced” NAT options. On ISP gateways you may need the admin account printed on the device label rather than the user account the ISP gave you.

Two rules:

  • Finding it ON after seeing symptoms is confirmation enough — turn it off and re-run your test call.
  • Finding it OFF proves nothing. Plenty of firmware ships ALGs that keep rewriting after the toggle is flipped, or exposes the toggle only on some hardware revisions. If methods 1–3 show symptoms, believe them, not the checkbox.

Once you’ve confirmed it

Skip the per-router firefighting entirely

Every new remote worker is another ISP router to test. VoipFlow, our white-labeled cloud SBC for MSPs, runs tenant signaling on 5062 by design so ALG rewriting never engages in the first place — flat-rate, per-tenant isolation, 14-day free sandbox, no credit card.