LinkedSIP opens soon. Sign-up, payments and calling are not open yet, and the rates shown are examples.

SIP ALG: what it is and how to turn it off

SIP ALG (application layer gateway) is a router feature that rewrites the addresses inside call messages as they leave your network. It was meant to help calls through NAT. With today's phones and phone systems it usually breaks them, which is why almost every SIP provider asks you to disable SIP ALG.

  • Phones drop their registration
  • One-way or no audio
  • Calls drop after about 32 seconds
  • Incoming calls do not ring
  • Hold and transfer fail

Updated 10 November 2026.

ALG

What SIP ALG does

Your router edits the message. Sometimes it gets the edit wrong.

Your phone writes its own address into every SIP message. Behind a router that address is private, such as 192.168.1.20, so the ALG swaps in the router's public one. Modern phones already correct for this, and a second, partial correction is what breaks the call.

Via
Phone sentSIP/2.0/UDP 192.168.1.20:5060;rport
Provider receivedSIP/2.0/UDP 203.0.113.7:5060
The rport tag the phone added is gone, so replies may go back to the wrong port.
Contact
Phone sent<sip:[email protected]:5060>
Provider received<sip:[email protected]:1032>
A port the router may not keep open. Incoming calls stop arriving a few minutes later.
c= (audio)
Phone sentIN IP4 192.168.1.20
Provider receivedIN IP4 192.168.1.20
Missed. The provider sends your caller's voice to a private address, and you hear nothing.
One faulty rewrite, for illustration. The phone is at 192.168.1.20; the router's public address is 203.0.113.7.
5

Signs SIP ALG is breaking your calls

Five symptoms, one cause worth ruling out first.

REG

Phones drop their registration

They show as offline every few minutes, then come back. The ALG rewrote the address the provider uses to reach them.

1/2

One-way or no audio

The call connects, but one side hears nothing. The audio address inside the message was changed, or left private.

32s

Calls drop after about 32 seconds

The answer's confirmation (ACK) never arrives, so the other side gives up after 32 seconds: 64 times SIP's half-second base timer.

IN

Incoming calls do not ring

Outgoing calls work, but the provider cannot reach the address the ALG wrote down.

⇄

Hold and transfer fail

These send fresh messages mid-call, and the ALG rewrites each one again, not always the same way.

?

Should you turn SIP ALG off?

Almost always. Two narrow cases say otherwise.

OFF

Turn it off when

  • Your provider or phone system maker tells you to, which nearly all do.
  • You see any of the five signs above.
  • Your phones or PBX handle NAT themselves: keepalives, rport or a public address setting. Almost every current one does.
ON

Leave it on only when

  • Your provider says in writing that its service depends on it.
  • On a SonicWall, your PBX sits outside the firewall and its maker asks for SIP transformations.
OFF

How to disable SIP ALG

Pick your router. Menu names move between firmware versions.

If your menu differs, search the router's own settings for SIP, ALG or Passthrough. On some routers the option has no visible label and only the maker or your ISP can change it.

Turn SIP ALG off on Netgear
  1. Sign in at routerlogin.net
  2. Advanced > Setup > WAN Setup
  3. Tick Disable SIP ALG
  4. Apply

Netgear ships it switched on. Older menus may name the page WAN Setup under Advanced only.

3

After you turn SIP ALG off

Three steps, or the old rewrites linger.

  1. 1

    Restart the router

    This clears the NAT table, which still holds the rewritten connections.

  2. 2

    Restart the phones or PBX

    They register again from scratch, through a router that now leaves the messages alone.

  3. 3

    Call in, call out, wait a minute

    Make an incoming and an outgoing call and stay on past 32 seconds. Then try hold and a transfer.

LOG

How to tell if SIP ALG is the cause

Compare what you sent with what arrived.

Two checks, both free, both in tools you already have.

LOG

Read the SIP log on both ends

Your PBX or SIP app logs the messages it sends. If the provider's side shows a different Contact or audio address than your log does, something between you rewrote it, and on a home or office router that something is the ALG.

TLS

Change the port or encrypt

An ALG only reads unencrypted SIP, usually on port 5060. If your provider offers TLS or a different port and the problem disappears when you switch, the ALG was the cause. Turn it off anyway, so a later change does not bring it back.

FAQ

SIP ALG questions

Should I turn SIP ALG off?
Yes, unless your provider has told you its service needs it. Turning it off changes nothing for web browsing, video or anything else that is not SIP.
Is it safe to disable SIP ALG?
Yes. It is a translation feature, not a security one. Your firewall rules keep working exactly as before.
Does disabling SIP ALG affect gaming?
No. SIP ALG only touches SIP call messages, usually on port 5060. Games use their own protocols and ports, so they do not notice the change.
How do I turn off SIP ALG on UniFi?
On UniFi gateways the SIP option sits in the firewall or security settings of the Network application, and it has moved between versions. Search the settings for SIP, turn the SIP helper off, apply, then restart your phones.
What are ports 5060 and 5061?
The standard SIP ports: 5060 for SIP over UDP or TCP, unencrypted, and 5061 for SIP over TLS, encrypted. ALGs watch 5060 because they cannot read 5061.
Is SIP over TCP or UDP?
Either. Most phones and trunks use UDP on port 5060 by default. TCP helps when messages are too large for one packet, and TLS runs over TCP.
My router has no SIP ALG setting. What now?
Some routers hide it or have none. Ask your ISP to switch it off or to put their router in bridge mode, or test with TLS or a different port to see whether the router interferes at all.

ALG off, phones registered. Now finish the trunk.

The four trunk settings and the dial rule, in the menus of 3CX, FreePBX, Asterisk and Yeastar: SIP trunk configuration. Another fault? Our SIP troubleshooting guide starts from the symptom. New to trunks? Start with what a SIP trunk is.