Coder Social home page Coder Social logo

dletta / hepgen.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sipcapture/hepgen.js

0.0 0.0 0.0 161 KB

Barebone HEP Generator for SIP-less Devs

Home Page: http://sipcapture.org

License: MIT License

JavaScript 99.93% Dockerfile 0.01% Perl 0.06%

hepgen.js's Introduction

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 -g hepgen.js

Run

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

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

Custom Config

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

Custom Config + Loki

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

Custom from PCAP TEXT

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

Debug

hepgen.js -d

hepgen.js's People

Contributors

lmangani avatar adubovikov avatar negbie avatar dletta avatar grumvalski avatar zecke avatar mikegoodstadt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.