sipdump per day. compressed. heplify.
Ниже представлен скрипт для установки сервиса systemd сбора sip пакетов в папку /var/log/sipdump по дням. в дальнейшем можно распаковать файлы и и пробежаться по ним sngrep.
!/usr/bin/sh echo "Instaiiling sipdump have started: \n" yum install wget git -y apt install wget git -y cd /usr/src/ mkdir sipdump cd sipdump wget https://github.com/sipcapture/heplify/releases/download/1.62/heplify chmod 760 heplify cp heplify /usr/bin rm heplify mkdir /var/log/sipdump echo " [Unit] Description=Yooxy sipdump After=network.target ConditionPathExists=/var/log/sipdump [Service] WorkingDirectory=/var/log/sipdump ExecStart=/usr/bin/heplify -dim OPTIONS,NOTIFY -wf /var/log/sipdump -rt 1440 -zf -sl ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target Alias=sipdump.service" > sipdump.service chmod 664 sipdump.service cp sipdump.service /etc/systemd/system/sipdump.service rm sipdump.service systemctl daemon-reload systemctl start sipdump echo "Script ending \n"
| Posted in Asterisk, freeswitch, kamailio, opensips, Готовые решения | No Comments »