FEATUREDLatestOpenSIPSTOP STORIESVOIPWebRTC

SIP ALG: How to Check for It and Turn It Off

SIP ALG is a router feature that is meant to help VoIP through NAT but often stops it working. This article is a practical guide: how to tell whether SIP ALG is affecting your phones, how to switch it off on common routers, and what to do when you cannot. For the background on what SIP ALG does and why it was invented, see our companion article, What is SIP ALG and why you should disable it.

What SIP ALG does, in one paragraph

An Application Layer Gateway for SIP watches unencrypted SIP traffic, normally on port 5060, and rewrites the private IP addresses inside SIP headers and SDP bodies so that they match the router’s public address. Each implementation does this differently, and many get it wrong: they rewrite headers that should be left alone, miss some addresses, or open the wrong ports for audio. The phone system and the phone then disagree about where audio and signalling should go.

Symptoms

  • Phones register, then drop off or fail to re-register.
  • One-way or no audio on calls that connect.
  • Calls that end after about 30 seconds, because the acknowledgement of the answered call does not reach the phone that answered.
  • Inbound calls that never ring, while outbound calls work.

None of these is proof of SIP ALG on its own; firewall rules and NAT settings on the PBX cause the same symptoms. Our guide to fixing one-way audio covers the other causes.

How to check

Capture the same SIP message at both ends: on the phone’s network (or in the phone’s own log) and on the PBX, with sngrep or Wireshark. Compare the Via and Contact headers and the c= line of the SDP. If addresses or ports were changed between the two captures in ways your own NAT settings do not explain, something in the path is rewriting SIP, and the router’s ALG is the usual suspect. A quick test is to move the phone to TLS on port 5061 or to a non-standard SIP port: if the problem disappears, an ALG on port 5060 was very likely the cause.

How to disable it

  • MikroTik (RouterOS): /ip firewall service-port disable sip
  • Ubiquiti EdgeRouter and USG (EdgeOS): in configuration mode, set system conntrack modules sip disable, then commit and save. Intermedia’s EdgeRouter X configuration guide shows the same steps.
  • Netgear: on most models the option is under the WAN or advanced settings as “Disable SIP ALG”; see Netgear’s own instructions.
  • Linux-based firewalls: the SIP helper is the nf_conntrack_sip kernel module; unload it and stop it loading at boot.
  • ISP-supplied routers: many have no visible setting. Ask the provider to switch the ALG off, or put the router into bridge or modem mode and use your own firewall.

Restart the phones after the change so that they register afresh. Some routers only apply the setting after a reboot.

When you cannot switch it off

An ALG can only rewrite what it can read. Moving SIP to TLS (port 5061) hides the signalling from it, and moving to a non-standard UDP port usually takes it out of the path. Browser softphones are generally not affected for the same reason: they carry SIP over an encrypted WebSocket and find a media path with ICE, STUN and TURN. Where WebRTC calls still lose audio, the cause is normally elsewhere; see SIP ALG and WebRTC and Innovate Asterisk’s STUN and TURN NAT guide for Asterisk.


Corrected 20 November 2026: the earlier version said SIP ALG interferes with STUN, TURN and ICE in WebRTC (browser clients use encrypted WebSocket signalling that an ALG cannot read), relied on third-party pages for router steps, and promoted a hosted proxy as a fix. It now gives vendor commands and a way to confirm the cause.

Leave a Reply

Your email address will not be published. Required fields are marked *