Skip to content

Commit

Permalink
Fix. ACK was being replied when not pointing to us. Thanks @saghul
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Feb 17, 2013
1 parent e82d60a commit 5e7d815
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/UA.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ JsSIP.UA.prototype.receiveRequest = function(request) {
// Check that Ruri points to us
if(request.ruri.user !== this.configuration.uri.user && request.ruri.user !== this.contact.uri.user) {
console.log(JsSIP.C.LOG_UA +'Request-URI does not point to us');
request.reply_sl(404);
if (request.method !== JsSIP.C.ACK) {
request.reply_sl(404);
}
return;
}

Expand Down

0 comments on commit 5e7d815

Please sign in to comment.