kirm/sip.js — Issue #12: Port is 0 when replying to request
Author: agranig
Created: 2012-01-27 19:20:03+00:00
State: open

Consider this code:

```
sip.start({address: '1.2.3.4', port: 35060}, function(rq) {
sip.send(sip.makeResponse(rq, 501, 'Not Implemented'));
});
```

When it receives a request (tried INVITE, MESSAGE, OPTION) from 1.2.3.5:5060, then it sends back the response to port 0, see ngrep line:
```
U 10.10.8.22:35060 -> 79.125.122.140:0
SIP/2.0 501 Not Implemented

```

Am I missing something, or could it be a bug?