On Fri, Jan 24, 2020 at 04:06 AM, Michael Keuter  wrote:
Am 23.01.2020 um 23:17 schrieb Dan Ryson :

Hi Michael,

Thanks for the reply.

I guess my question is really how best to routinely run a SIP PCAP on all 
incoming/outgoing calls, for later analysis if necessary.  

I have a provider that offers this and have found it useful for troubleshooting 
isolated problems.  I'm not worried about deleting SIP capture files.  I'm just 
uncertain how to create them.

Dan

Hi Dan,

I use this line in "rc.local" to start sngrep in the background in a screen 
session and store the .pcap files in "/mnt/kd/sngrep/"

/usr/bin/screen -dmS sngrep /usr/bin/sngrep -c -O /mnt/kd/sngrep/$(date 
+"%Y-%m-%d_%H%M").pcap

The "-c" is important so it only reports on calls, no options, notifies and so 
on.

On high traffic systems that can eat up a lot of RAM over time, so I kill 
sngrep with a cronjob in the night and start it again also to get daily reports.

killall sngrep && ....

You can read the .pcap files then later with sngrep within AstLinux again and 
search for issues.
Hi Michael,
This is perfect.  Thank you for the guidance.  I particularly appreciate the 
extra explanation and cronjob advice.  I'll give all of this a try and report 
any useful findings. 
Although I've been an AstLinux user since version 0.4.5, I recognize that this 
qualifies as a NOOB question.  Thanks for restraining the laughter, everyone!  
Best wishes, 
Dan
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to