# Monitoring VoIP Traffic with nProbe and ntopng | ntop

[Blog](https://www.ntop.org/blog/)[nProbe](https://www.ntop.org/category/nprobe/)[ntopng](https://www.ntop.org/category/ntopng/)

# Monitoring VoIP Traffic with nProbe and ntopng

December 8, 20166 min read

VoIP applications usually limit theirs monitoring capabilities to the generation of CDR (Call Data Records) that are used for the generation of billing/consumption data. In essence you know how many calls a certain user/number has made, the duration etc. While this information can be enough for basic monitoring, it is not enough for guaranteeing reliable call quality as these systems are essentially blind with respect to call quality. Wireshark can analyse both call signalling and voice, but it is a troubleshooting tool meaning that it cannot be used for permanent monitoring but just for analysing specific situations when there is a specific problem to analyse.

Fortunately you can complement CDR with realtime VoIP traffic monitoring and voice quality analysis using nProbe Pro (with VoIP plugin) and ntopng. All you need is to send nProbe (usually via a span port or network tap) the VoIP traffic (or if you want all your network traffic including VoIP) for analysis. Via redis, nProbe is able to analyse SIP, RTP, RTCP and to correlate SIP with RTP, so that you know for each RTP stream what is the call it belongs to.

Supposing that the traffic to monitor is received on eth1 all you need to do is to start the following applications (in the example below thay have been started on the same machine but via ZMQ flows can be sent remotely over the network in an encrypted format)

\# nprobe -i eth1 -T "%IPV4\_SRC\_ADDR %IPV4\_DST\_ADDR %IPV4\_NEXT\_HOP %INPUT\_SNMP %OUTPUT\_SNMP %IN\_PKTS %IN\_BYTES %FIRST\_SWITCHED %LAST\_SWITCHED %L4\_SRC\_PORT %L4\_DST\_PORT %TCP\_FLAGS %PROTOCOL %L7\_PROTO @SIP@ @RTP@" --redis localhost --zmq tcp://127.0.0.1:1234

$ ntopng -i tcp://127.0.0.1:1234

In essence nProbe analyses the traffic and sends ntopng flows via ZMQ. ntopng collects the flows and display them on the user interface. Inside the nProbe template there are two special information elements @SIP@ and @RTP@: they represent a wildcard for various information elements such as SIP caller/called or RTP codecs. This way users can forget about VoIP details and focus on monitoring traffic

As you can see, ntopng interprets the VoIP information and represents it in a user-friendly way. It reports not just about CDRs, but it can analyse voice quality by computing pseudo-MOS. This enables network administrators to spot calls with bad quality and try to find a solution to the problem. If you enable in ntopng the export to ElasticSearch and/or MySQL, you can dump call information persistently on a database or use Kibana to create a dashboard about VoIP calls.

\# StartTime\[epoch\]	EndTime\[epoch\]	SIP\_Server\[ascii:32\]	ClientIP\[ascii:32\]	CallId\[ascii:64\]	CallingParty\[ascii:64\]	CalledParty\[ascii:64\]	RTPInfo\[ascii:64\]	SIPFailureCode\[uint\]	ReasonCause\[uint\]	Packets\[uint\]	CallState\[ascii:64\]	StateMachine\[ascii\]
#
1481205353	1481205353	212.13.205.165	10.96.5.59	b654d999b6321def238939c5d48ce777@10.37.129.2	brix <sip:brix@testyourvoip.net>	<sip:tyv@212.13.205.165>	10.37.129.2:50070,212.13.205.165:50422	200	0	12105	CALL\_COMPLETED	INVITE=1481205353,TRYING=0,RINGING=1481205353,INV\_RSP=1481205353,BYE=1481205353,CANCEL=0
1481205353	1481205353	10.96.5.59	212.13.205.165	400ad5a7a28e421f355369a9fc8910ee@192.168.1.101	brix <sip:brix@testyourvoip.net>	<sip:tyv@212.13.205.165>	212.13.205.165:50390,0.0.0.0:0	200	0	5	CALL\_IN\_PROGRESS	INVITE=0,TRYING=0,RINGING=1481205353,INV\_RSP=1481205353,BYE=0,CANCEL=0

Above you can find an excerpt of a call sample. The whole list of SIP

%SIP\_CALL\_ID               	SIP call-id
%SIP\_CALLING\_PARTY         	SIP Call initiator
%SIP\_CALLED\_PARTY          	SIP Called party
%SIP\_RTP\_CODECS            	SIP RTP codecs
%SIP\_INVITE\_TIME           	SIP time (epoch) of INVITE
%SIP\_TRYING\_TIME           	SIP time (epoch) of Trying
%SIP\_RINGING\_TIME          	SIP time (epoch) of RINGING
%SIP\_INVITE\_OK\_TIME        	SIP time (epoch) of INVITE OK
%SIP\_INVITE\_FAILURE\_TIME   	SIP time (epoch) of INVITE FAILURE
%SIP\_BYE\_TIME              	SIP time (epoch) of BYE
%SIP\_BYE\_OK\_TIME           	SIP time (epoch) of BYE OK
%SIP\_CANCEL\_TIME           	SIP time (epoch) of CANCEL
%SIP\_CANCEL\_OK\_TIME        	SIP time (epoch) of CANCEL OK
%SIP\_RTP\_IPV4\_SRC\_ADDR     	SIP RTP stream source IP
%SIP\_RTP\_L4\_SRC\_PORT       	SIP RTP stream source port
%SIP\_RTP\_IPV4\_DST\_ADDR     	SIP RTP stream dest IP
%SIP\_RTP\_L4\_DST\_PORT       	SIP RTP stream dest port
%SIP\_RESPONSE\_CODE         	SIP failure response code
%SIP\_REASON\_CAUSE          	SIP Cancel/Bye/Failure reason cause
%SIP\_C\_IP                  	SIP C IP adresses
%SIP\_CALL\_STATE            	SIP Call State

and RTP

%RTP\_SSRC                       RTP Sync Source ID
%RTP\_FIRST\_SEQ             	First flow RTP Seq Number
%RTP\_FIRST\_TS              	First flow RTP timestamp
%RTP\_LAST\_SEQ              	Last flow RTP Seq Number
%RTP\_LAST\_TS               	Last flow RTP timestamp
%RTP\_IN\_JITTER             	RTP jitter (ms \* 1000)
%RTP\_OUT\_JITTER            	RTP jitter (ms \* 1000)
%RTP\_IN\_PKT\_LOST           	Packet lost in stream (src->dst)
%RTP\_OUT\_PKT\_LOST          	Packet lost in stream (dst->src)
%RTP\_IN\_PKT\_DROP           	Packet discarded by Jitter Buffer (src->dst)
%RTP\_OUT\_PKT\_DROP          	Packet discarded by Jitter Buffer (dst->src)
%RTP\_IN\_PAYLOAD\_TYPE       	RTP payload type
%RTP\_OUT\_PAYLOAD\_TYPE      	RTP payload type
%RTP\_IN\_MAX\_DELTA          	Max delta (ms\*100) between consecutive pkts (src->dst)
%RTP\_OUT\_MAX\_DELTA         	Max delta (ms\*100) between consecutive pkts (dst->src)
%RTP\_SIP\_CALL\_ID           	SIP call-id corresponding to this RTP stream
%RTP\_MOS                   	RTP pseudo-MOS (value \* 100) (average both directions)
%RTP\_IN\_MOS                	RTP pseudo-MOS (value \* 100) (src->dst)
%RTP\_OUT\_MOS               	RTP pseudo-MOS (value \* 100) (dst->src)
%RTP\_R\_FACTOR              	RTP pseudo-R\_FACTOR (value \* 100) (average both directions)
%RTP\_IN\_R\_FACTOR           	RTP pseudo-R\_FACTOR (value \* 100) (src->dst)
%RTP\_OUT\_R\_FACTOR          	RTP pseudo-R\_FACTOR (value \* 100) (dst->src)
%RTP\_IN\_TRANSIT            	RTP Transit (value \* 100) (src->dst)
%RTP\_OUT\_TRANSIT           	RTP Transit (value \* 100) (dst->src)
%RTP\_RTT                   	RTP Round Trip Time (ms)
%RTP\_DTMF\_TONES            	DTMF tones sent (if any) during the call

information elements are reported above.

Thanks to PF\_RING, using nProbe it is possible to monitor large VoIP networks using a low-cost x86-based server with tent of thousand concurrent calls. Advanced users can instruct nProbe also to create call logs (you need to add –sip-dump-dir <dump dir> to the nProbe command line) in addition to exporting data to ntopng.

Happy VoIP traffic monitoring!

## Keep reading

ntopngNov 23, 2026

### [Modeling Your Network: Part I](https://www.ntop.org/network-model-intro/)

ntopng is introducing continuous network learning to help administrators close visibility gaps in dynamic networks, starting with a new Server Model feature. Using DPI and historical flow data, the system passively discovers and baselines core servers—alerting operators to unauthorized services, unresponsive hosts, or traffic anomalies while automatically updating network configurations to reduce false-positive security alerts.

nDPINov 7, 2026

### [Detecting CVE-2026-98432 using nDPI/ntopng](https://www.ntop.org/detecting-cve-2026-98432-using-ndpi-ntopng/)

CVE-2026-98432 is a critical, 9.8-severity use-after-free (UAF) vulnerability in the Linux kernel’s IPv4 TCP networking stack. It allows an unauthenticated remote attacker to potentially cause system crashes, memory corruption, or execute arbitrary commands with root privileges. From a network stand

[![](/images/2026/09/Screenshot-2026-09-09-151028-1.webp)](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

AnnounceOct 5, 2026

### [October 20th: Join us for the ntopng 7.0 Webinar](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

Is your network monitoring keeping pace with AI, larger infrastructures, and the growing need for real observability? We’re excited to introduce ntopng 7.0, alongside new releases of the rest of the ntop…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/monitoring-voip-traffic-with-nprobe-and-ntopng/