sip.js is a SIP stack for node.js. It implements tranaction and transport layers as described in RFC3261.
Easiest way is npm.
npm install sip
API is documented in doc/api.markdown