[asterisk-users] OT: Want to capture all SIP messages

Daniel Tryba daniel at tryba.nl
Wed May 31 15:46:13 CDT 2017


On Wed, May 31, 2017 at 01:39:25PM -0700, Steve Edwards wrote:
> >What bugs you about the output format?
> 
> It's been a while, but as I recollect, it included the date/timestamp in the
> file name of the 'ring buffer' which meant that each time the host was
> rebooted, dumpcap didn't know the files from the previous run should be
> deleted when they 'aged out.'

Solvable by by writing a cleanup script that deletes files over a
specific age, just a basic find in the daily crontab:
find /path/to/captures -type f -name 'pattern*' -mtime +X -exec rm {} \;




More information about the asterisk-users mailing list