Skip to content

alexandr-romanenco/hepgen.js-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HEPGEN.JS

Barebone HEP Packet Generator for SIP-less Devs and Unit Testing

Configure

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

Install

npm install

Run

Replace 127.0.0.1 and 9060 with the actual IP and PORT of your HEP Server:

node hepgen.js -s 127.0.0.1 -p 9060 -c "./config/b2bcall_rtcp.js"

Custom Config

node hepgen.js -c "./config/options.js"

Custom Config + Loki

node hepgen.js -a my.loki.host -c "./config/b2bcall_rtcp_logs.js"

Custom from PCAP TEXT

node hepgen.js -s 127.0.0.1 -p 9063 -P "./path/to/SIP.pcap-txt"

Debug

node hepgen.js -d

About

Barebone HEP Generator for SIP-less Devs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%