What is ALG?
ALG (Application Layer Gateway) is a network function that manages application protocols such as SIP (Session Initiation Protocol) and FTP (File Transfer Protocol). An ALG acts as an intermediary between the Internet and an application server that can understand the application protocol. The ALG appears as the endpoint server and controls whether to allow or deny traffic to the application server.
It does this by intercepting and analyzing the specified traffic, allocating resources, and defining dynamic policies to allow traffic to pass through the gateway. An ALG can be useful for certain protocols, but in some cases—like SIP—it may cause issues and is often recommended to be disabled in VoIP environments.

ALG Functions and Network Behavior
In VoIP networks, ALG - especially SIP ALG - is known to interfere with call setup and audio. For most VoIP systems like 3CX, it's best to disable SIP ALG on routers or firewalls to ensure call reliability.
Further reading
Last Updated
This document was last updated on 4 July 2025
https://www.3cx.com/pbx/alg/

