By Manny Fernandez

March 26, 2026

Monkey Bites – SIP Trouble Shooting Commands

Monkey Bites – SIP Trouble Shooting Commands

Troubleshooting VoIP on a FortiGate can feel like trying to solve a puzzle where the pieces keep moving. If you’ve ever dealt with one-way audio or dropped calls, you’ve likely encountered the SIP ALG (Application Layer Gateway) or the SIP Session Helper.

To peek under the hood and see how FortiOS is actually handling these packets, the diagnose sys sip command is your most powerful tool—specifically when you are using the SIP Session Helper (kernel-helper-based mode).

Here is a deep dive into the diagnose sys sip options and how to use them to fix your voice traffic.

Understanding the Context – Helper vs. ALG

Before running these commands, you must know which “engine” is handling your SIP traffic.
SIP ALG (Proxy-based) – Uses the diagnose sys sip-proxy commands.
SIP Session Helper (Kernel-helper) – Uses the diagnose sys sip commands.

To check which one is active, run:

show full system settings | grep default-voip-alg-mode

If it says kernel-helper-based, the commands below are for you.

Key Command Options & Use Cases

Status

diagnose sys sip status

The “Quick Health Check”

This provides a high-level overview of the SIP helper’s current workload.

What it shows – Total active SIP dialogs, NAT mappings, and hash table usage.
Use Case –  Use this if you suspect the FortiGate is overwhelmed or if you need to confirm that the session helper is actually seeing any traffic. If used=0 across the board while a call is active, your traffic is likely bypassing the helper or hitting a different policy.

Dialog List

diagnose sys sip dialog list

The “Call Tracker”

This is arguably the most important command for troubleshooting active call issues.

What it shows – A detailed list of all current SIP dialogs (calls or registrations) the FortiGate is tracking. It includes the Call-ID, source/destination IPs, and the current state of the transaction.

Use Case –  Essential for diagnosing registration timeouts. If you see a dialog for a phone registration that never clears or shows an incorrect expiration, the helper might be misinterpreting the REGISTER flow.

Mapping List

diagnose sys sip mapping list

The “NAT Checker”

SIP is notoriously bad at handling NAT because the IP addresses are embedded inside the packet payload. The session helper creates “mappings” to translate these.

What it shows –  The table of internal-to-external IP/port mappings the FortiGate is maintaining.
Use Case –  Use this to solve **one-way audio**. If the mapping shows the wrong public IP or an unexpected port, the remote carrier won’t know where to send the audio (RTP) stream.

Debug Level

diagnose sys sip debug-mask <integer>

The “Deep Dive”

This sets the verbosity of SIP-specific logging.

Common Masks –  0: Silent (default).
1 – Basic info.
255 – Detailed debugging (shows packet headers and state changes).
Use Case –  When a call fails to establish entirely. By enabling a debug mask and running `diagnose debug enable`, you can see exactly where the FortiGate decides to drop a packet or if it fails to create a “pinhole” for the audio.

Clear Dialog Tables

diagnose sys sip dialog clear

The “Reset Button”

Use Case – Sometimes SIP states get “stuck” in the kernel. If you’ve changed a firewall policy or a NAT setting and calls are still failing, clearing the dialog table forces all phones to re-register and create fresh sessions.

 

Summary Table: Which Command to Use?
Goal Command
Check if the helper is active diagnose sys sip status
See active calls/registrations diagnose sys sip dialog list
Debug NAT/IP translation issues diagnose sys sip mapping list
Clear all “stuck” SIP sessions diagnose sys sip dialog clear
See real-time packet processing diagnose sys sip debug-mask 255

 

Pro-Tip – Don’t forget the Sniffer

While diagnose sys sip tells you what the FortiGate thinks is happening, a packet sniffer tells you what is actually happening on the wire. Always pair your SIP diagnostics with a sniffer:

diagnose sniffer packet any "port 5060" 4

This ensures that the packets are reaching the interface before you start blaming the SIP helper!

 

AI Data Leakage: Myths, Reality, and Locking It Down With Local Models

AI Data Leakage: Myths, Reality, and Locking It Down With Local Models

Learn what AI data leakage really means, which myths to ignore, and how to lock down local models with Ollama, host firewalls and FortiGate...

Read More
The Dark Web: The Good, the Bad and the Ugly (Myths vs. Reality)

The Dark Web: The Good, the Bad and the Ugly (Myths vs. Reality)

Dark web myths debunked: what is real, what is hype, what to avoid, how to stay legal, and how to block Tor on a...

Read More
FSSO Mobility Agent on VDI: Identify Chromebook Users Behind Parallels RAS with FortiAuthenticator

FSSO Mobility Agent on VDI: Identify Chromebook Users Behind Parallels RAS with FortiAuthenticator

Run the FSSO Mobility Agent in a VDI golden image so FortiGate identifies Chromebook users on Parallels RAS, and know when the TS Agent...

Read More