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.
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
}
Released under the MIT License
Based on parsip module by Lorenzo Mangani (http://qxip.net/),
which is in turn based on elements from
jsSIP and SDP-Tranform
packages