kirm/sip.js — Issue #7: sip.js:540 if(m.headers['content-length']) { TypeError: Cannot read property 'headers' of undefined
Author: andrewhodel
Created: 2011-12-13 15:35:47+00:00
State: open

I get this when trying to run examples/registrar-redirector-auth.js on 0.6.5 using http://itunes.apple.com/us/app/telephone/id406825478?mt=12 as a SIP client.

sip.js:540
if(m.headers['content-length']) {
^
TypeError: Cannot read property 'headers' of undefined
at parseMessage (/home/zip/node_modules/sip/sip.js:540:9)
at Socket. (/home/zip/node_modules/sip/sip.js:633:15)
at Socket.emit (events.js:70:17)
at UDP.onMessage [as onmessage] (dgram.js:307:10)