Barebone HEP Packet Generator for SIP-less Devs and Unit Testing
Edit config.js
and create your HEP scenario with the following structure:
var config = {
HEP_SERVER: '127.0.0.1',
HEP_PORT: 9060,
HEP_ID: '2001',
HEP_AUTH: 'myHep',
MESSAGES: [
{
rcinfo: { <HEP_HEADER> },
pause: 0,
payload: <sip message>
},
{
rcinfo: { <HEP_HEADER> },
pause: 1000,
payload: <sip message>
}
]
}
See config.json for a working example using SIP OPTIONS and a fictional Syslog
npm install
npm start
node hepgen.js -c "./config/options.js"
node hepgen.js -s 127.0.0.1 -p 9063 -P "./path/to/SIP.pcap-txt"
node hepgen.js -d