DIsabling SIP Application Layer Gateway (ALG) functionality

DIsabling SIP Application Layer Gateway (ALG) functionality

If you are experiencing one way voice particularly on incoming calls the most probable cause is SIP ALG. While originally designed to resolve a NAT related problems, with no standard implementation many routers and software based firewalls corrupt the SIP message by attempting to rewrite part of the SIP message. Frustratingly the one-way voice issues will often only occur on a single number and will clear once the router has been reset.

As a general rule all VoIP service providers recommend disabling SIP ALG (see VoIP Org).


If you are unable to access the router consider switching your phone or PBX to use TLS which to encrypt the SIP packet ultimately preventing SIP ALG corruption.

Disabling SIP ALG – Cisco IOS Router

  • From the CLI: Enable configure terminal, No IP nat service SIP UDP port 5060
  • For TCP run: No ip nat service sip tcp port 5060

Disabling ALG – DrayTek Routers

This guide specifically applies to the Vigor 2760 but is also applicable to most other DrayTeks in the series.

  • 2800, 2820, 2830, 2860, 2920, 2925, 2960

Windows

  1. Start | Cmd
  2. Type: telnet 192.168.1.1 (Enter) NB – Ensure Telnet is enabled ( Start | Control Panel | Programs | Programs and Features | Turn Windows Features on or off | TELNET CLIENT >> OK)
  3. Default user name: admin | admin
  4. Type: sys sip_alg 0 (Enter) Enter

Disabling ALG – Netgear Modem Router

This guide applies to most Netgear routers

  1. In browser browse to 192.168.0.1 (this is the default IP address)The default username is admin and the default password is password
  2. Under Advanced select WAN Setup
  3. Check Disable SIP ALG option
  4. Select Apply

Disabling ALG – SonicWALL

This KB applies to all SonicWALL SonicOS firewalls.

SonicWall has a feature called SIP Transformations that consistently cause total or partial loss of voice.

  1. Log into the web interface on the SonicWall.
  2. On the left, find the VOIP tab. Depending on the version of SonicOS your screen may appear slightly different.
  • Disable SIP Transformations: Browse to the SIP Settings page and ensure Enable SIP Transformations is NOT enabled.
  • Enable Consistent NAT: The Consistent NAT setting will ensure the same NAT port is used. If this is disabled, you may experience undesired call behaviour.
  • Ensure Consistent NAT is Enabled

This KB applies to most TP-LINK routers.

On Windows 7/8

  1. Start | cmd >>Enter
  2. Type:telnet 192.168.1.1EnterNB – Ensure Telnet is enabled ( Start | Control Panel | Programs | Programs and Features | Turn Windows Features on or off | TELNET CLIENT >> OK)
  3. Default user name: admin | adminNote that no symbols may appear when typing in the password, but continue anyway.
  4. Type inip nat service sip sw offEnterIf successful, it should say Nat SIP v2 switch off!

Disabling ALG – Netcomm

While the following KB guide specifies the NB604N all Netcomm routers are similarly configured. Netcomm also provide a useful router emulator for all their routers.

  1. Logon to the router
  2. Advanced Setup | NAT | ALG >> uncheck “Enable SIP”

    • Related Articles

    • NAT and SIP ALG

      NAT NAT Traversal NAT can interfere with SIP and RTP by changing the ports on the way through. To counter we enable NAT traversal by default therefore communicating directly to the port that sent us the original RTP traffic (instead of sending back ...
    • Tech Connections generic SIP settings for connecting a SIP compliant device to our service

      Customers with their own SIP enabled phone, gateway or PBX are free to use this to connect to Tech Connections's service. The device must be SIP v2 compatible. Refer to the settings below for a guide to how you should configure your device to connect ...
    • SIP Registration, Peering and IAX2 explained

      SIP Registration, Peering and IAX2 explained Tech Connections supports SIP registration, SIP peering and IAX2 registration to connect your VoIP service. SIP Registration The simplest of the three connection types “Registration” is used to connect IP ...
    • Why can’t I register my VoIP device?

      Why can’t I register my VoIP device? Firewalls and Interfering routers are the most common cause of SIP registration failure with your VoIP device where the firewall/router blocks incoming traffic required by our SIP registration process. Remember ...
    • Can I use my existing phone with Tech Connections?

      As a SIP or VoIP service provider you will require an IP telephone handset to make calls on the Tech Connections network or you can use our Mobiex Apps on your Smartphone.  Commonly used SIP handsets are those by Yealink, Polycom and Cisco/Linksys. ...