mfalkus / sipright

A SIP/SDP parsing module that checks for packet correctness.

Home Page:https://voiptoolbox.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SIP-Right

A SIP/SDP parsing module that checks for packet correctness.

A fork of the excellent parsip module by Lorenzo Mangani (http://qxip.net/) that tries to give useful exceptions for packets that aren't valid.

Usage

SIP to JSON

var sipright = require('sipright');
var sip_message = "..." // Valid SIP Message here

try {
    var sip = sipright.getSIP(sip_message);
    ... // Your packet is correct!
} catch(err) {
    // Your packet isn't correct
    // Read string err to find out why
}

License

Released under the MIT License

Acknowledgement

Based on parsip module by Lorenzo Mangani (http://qxip.net/), which is in turn based on elements from jsSIP and SDP-Tranform packages

About

A SIP/SDP parsing module that checks for packet correctness.

https://voiptoolbox.net

License:MIT License


Languages

Language:JavaScript 100.0%