Builds per-dialog pcap files from HEP SIP and SRTP captures. Decrypts the SRTP based on SDES key in SIP SDP payload.
Streams packets directly from the network interface.
Supports only SRTP with SDES encryption.
make
or
go build
./hepex -d any -b 'udp and (port 9060 or portrange 40000-50000)'
Filters:
./hepex -d any --from 1001 --to 1002
-d, --deviceLive capture interface (required)-o, --outputOutput directory for per-dialog pcaps (default: pcap)-f, --fromFilter by caller number (partial match)-t, --toFilter by callee number (partial match)-b, --bpfBPF filter expression for capture-D, --debugEnable debug output-v, --versionPrint version and exit
HEP packets are auto-detected by the HEP3 header.