/sipright

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

Primary LanguageJavaScriptMIT LicenseMIT

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