Monitoring Live Calls with SNGREP

Created by Daniel Kauffer, Modified on Mon, 17 Apr 2023 at 03:15 PM by Daniel Kauffer

SNGREP is a powerful tool for monitoring and analyzing VoIP calls on a PBX. It allows you to capture and display real-time call information, such as the calling and called party numbers, call duration, and call quality. In this article, we'll take a look at how to install and use SNGREP to monitor VoIP calls from a PBX.



Installation

SNGREP can be installed on most Linux distributions using the package manager. 


On Debian/Ubuntu, you can use the following command:


sudo apt-get install sngrep



On CentOS/RHEL, you can use the following command: 


sudo yum install sngrep


Alternatively, you can download the source code from the SNGREP website and compile it yourself 




Basic Usage

Once you have installed SNGREP, you can start monitoring VoIP calls from your PBX by running the following command:


sngrep

This will launch the SNGREP console, where you can see a real-time list of all active calls on your PBX.

To filter the call list, you can use various options, such as source and destination numbers, call status, and call duration. For example, to only display calls with a duration of more than 10 seconds, you can use the following command


sngrep -t 10


To filter calls based on the calling or called party number, you can use the following command: 


sngrep -r <number>

Replace <number> with the phone number you want to filter by.

In addition to filtering calls, SNGREP also allows you to listen to call audio and export call data to a CSV file for further analysis. To listen to call audio, simply select the call in the call list and press the Enter key. To export call data to a CSV file, press the 'o' key and enter a filename.





Conclusion

SNGREP is a powerful tool for monitoring VoIP calls on a PBX. With its real-time call information, filtering options, and call audio playback, it provides valuable insights into your VoIP traffic. By following the steps outlined in this article, you should now be able to install and use SNGREP to monitor VoIP calls from your PBX.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article