Nanananananananana.. Pat Man!

    node-red-contrib-hep

    0.1.0 • Public • Published

    node-red-contrib-hep

    Node-RED function that takes the msg.payload and encapsulates or decapsulates it to HEPv3.

    Installation

    Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically ~/.node-red

        npm i node-red-contrib-hep
    

    Usage

    If the input is a buffer it tries to parse it as hep and creates a javascript object. If the input is a javascript object w/ HEP rcinfo and payload, it will create a HEPv3 buffer.

    Example: payload

    ACK sip:883510000000091@domain.net SIP/2.0
    Via: SIP/2.0/UDP 192.168.1.23:5060;rport;branch=z9hG4bK484759904 
    From: <sip:somebody@somewhere.net>;tag=412285373 
    To: <sip:883510000000091@domain.net>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.4679 
    Call-ID: 1003554701 
    CSeq: 20 ACK 
    Content-Length: 0 
    

    Example: rcinfo

    rcinfo = { type: 'HEP',
      version: 3,
      payload_type: 'SIP',
      captureId: '2001',
      capturePass: 'myHep',
      ip_family: 2,
      time_sec: 1433719443,
      time_usec: 979,
      protocol: 17,
      proto_type: 1,
      srcIp: '192.168.100.1',
      dstIp: '192.168.1.23',
      srcPort: 5060,
      dstPort: 5060 
    }
    

    Install

    npm i node-red-contrib-hep

    DownloadsWeekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    6.48 kB

    Total Files

    7

    Last publish

    Collaborators

    • lmangani