Skip to content
Permalink
Browse files

Fix. ACK was being replied when not pointing to us. Thanks @saghul

  • Loading branch information
jmillan committed Feb 17, 2013
1 parent e82d60a commit 5e7d815df38fda2e08c51c814fbbfd79193f5173
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/UA.js
@@ -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;
}

0 comments on commit 5e7d815

Please sign in to comment.
You can’t perform that action at this time.