From 5e7d815df38fda2e08c51c814fbbfd79193f5173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= Date: Sun, 17 Feb 2013 11:44:52 +0100 Subject: [PATCH] Fix. ACK was being replied when not pointing to us. Thanks @saghul --- src/UA.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/UA.js b/src/UA.js index 65f09ae57..ab9afc3a0 100644 --- a/src/UA.js +++ b/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; }