kirm/sip.js — Issue #14: CANCEL results in 503
Author: agranig
Created: 2012-01-29 18:13:34+00:00
State: open

One more thing :)

Here's my INVITE (which works fine, so I get back 100 and 180) and my CANCEL, which results in a 503 and is never sent over the wire):

```
invite request: {
"method":"INVITE",
"uri":"sip:test2@example.com",
"headers":{
"to":{"uri":"sip:test2@example.com"},
"from":{"uri":"sip:test1@example.com","params":{"tag":"742456"}},
"call-id":"6734197970945388",
"cseq":{"method":"INVITE","seq":60636},
"contact":[{"uri":"sip:10739276102070292172@10.10.8.22"}],
"Content-Type":"application/sdp",
"Content-Length":201
},
"content":"snipped\r\n"
}

cancel request: {
"method":"CANCEL",
"uri":"sip:test2@example.com",
"headers":{
"to":{"uri":"sip:test2@example.com"},
"from":{"uri":"sip:test1@example.com","params":{"tag":"742456"}},
"call-id":"6734197970945388",
"cseq":{"method":"CANCEL","seq":60636},
"Content-Length":0
}
}
```

For me, the CANCEL looks fine (a copy of the INVITE with replaced cseq-method). Any idea why sip.js refuses to process it?