kirm/sip.js — Issue #13: End-to-End ACK is not sent
Author: agranig
Created: 2012-01-28 09:06:54+00:00
State: open

When starting an INVITE transaction from within sip.js, no ACK is sent when receiving the 200. This is not a real issue because I can craft one by myself. However it seems like sip.js also won't let me send an ACK manually, not even the most basic one I can think of (not taking into account any route headers from the response etc). The ACK doesn't leave the system, and the callback is not called as well. Here's the code:

```
var inviteResponseCallback = function(rs) {
if(rs.status == 200) {
sendAck(rs);
} else {
// other stuff here
}
}

var sendAck = function(rs) {
var rq = {
method: 'ACK',
uri: 'sip:test2@1.2.3.4',
headers: {
to: {uri: 'sip:test2@example.com' },
from: {uri: 'sip:test1@example.com' },
'call-id': '12345',
cseq: { method: 'ACK', seq: 1 },
},
};
sip.send(rq, function(rs){console.log('ack sent');});
}
```

Any ideas what's wrong here?