New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

parsip

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parsip

A straight-forward SIP/SDP parsing module for Node/JS

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
98
-16.24%
Maintainers
1
Weekly downloads
 
Created
Source

parSIP

A straight-forward SIP/SDP parsing module for Node/JS

Usage

SIP to JSON

var parsip = require('parsip');
var sip_message = "..." // Valid SIP Message here
var sip = parsip.getSIP(sip_message);

SDP to JSON

if (sip.headers['Content-Type'][0].raw == 'application/sdp'){
  var sdp = parsip.getSDP(sip.body);
}

VQ PUBLISH to JSON

if (sip.headers['Content-Type'][0].raw == 'application/vq-rtcpxr'){
  var vqj = parsip.getVQ(sip.headers.Packetloss[0].raw);
}
{ NLR: '0.0', JDR: '0.0' }

X-RTP-Stat to JSON

if (sip.headers['X-Rtp-Stat'][0].raw){
	var xrtp = parsip.getVQ(sip.headers['X-Rtp-Stat'][0].raw);
}
{ EX: 'BareSip',
  CS: '1000',
  CD: '29',
  PR: '1463',
  PS: '1490',
  PL: '0,0',
  PD: '0,0',
  JI: '3.0,3.0',
  IP: '3.4.5.6:48926,1.2.3.4:12856',
  EN: 'PCMA/8000',
  DE: 'PCMA/8000' }

JWT to JSON

var jwt = parsip.getJWT(sip.body.identity);

License

ParSIP is released under the MIT License

Acknowledgement

Based on elements from the awesome jsSIP and SDP-Tranform packages

Keywords

sip

FAQs

Package last updated on 31 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts