How to configure / deploy heplify on SIP Server

Download and install the latest Heplify release


wget https://github.com/sipcapture/heplify/releases/latest/download/heplify
chmod +x heplify
mv heplify /usr/bin/heplify


Create service file for heplify


cat > /etc/systemd/system/heplify.service <<EOF
[Unit]
Description=Captures packets from wire and sends them to Hepic
After=network.target

[Service]
Environment="HEP_ID=8888"
Environment="HEP_SERVER=homer.*****.com:9060"
Environment="HEP_PASSWORD=HEP-TOKEN-or-Password"
Environment="HEP_BUFFER_FILE=/root/HEP.dump"
Environment="HEP_LOG_LEVEL=info"
Environment="HEP_INTERFACE=any"
Environment="HEP_PORTRANGE=5060-6000"
Environment="HEP_PROM_STATS=0.0.0.0:8090"
ExecStart=/usr/bin/heplify -hep-buffer-activate -hep-buffer-file $HEP_BUFFER_FILE -l $HEP_LOG_LEVEL -sl -hi $HEP_ID -i $HEP_INTERFACE -pr $HEP_PORTRANGE -hs $HEP_SERVER -nt tcp -hp $HEP_PASSWORD -t af_packets -tcpsendretries 0 -tcpassembly -prometheus $HEP_PROM_STATS
ExecStop=/bin/kill ${MAINPID}
Restart=on-failure
RestartSec=10s
Type=simple

[Install]
WantedBy=multi-user.target
EOF


Reload unit file


systemctl daeon-reload


now start heplify as service


systemctl restart heplify


Enjoy 😉

No comments:

Post a Comment

SIPp UAC Scenario to send RTP

Please install the latest sipp ( >=3.7.3 ) wget https://github.com/SIPp/sipp/releases/download/v3.7.3/sipp chmor +x sipp mv sipp /usr/bin...