Skip to content

Commit 1ecabf5

Browse files
committed
Fix. RequestSender.receiveResponse was being rewrited by ByeSender and hence, no authentication was being made for such requests.
1 parent 3d822ec commit 1ecabf5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Session.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ JsSIP.Session = (function() {
700700
this.request = request;
701701
this.send = function() {
702702
var request_sender = new JsSIP.RequestSender(this, session.ua);
703+
this.receiveResponse = function(response){};
703704
request_sender.send();
704705
};
705706
}
@@ -721,7 +722,7 @@ JsSIP.Session = (function() {
721722
this.request = request;
722723
this.send = function() {
723724
var request_sender = new JsSIP.RequestSender(this, session.ua);
724-
request_sender.receiveResponse = function(response){};
725+
this.receiveResponse = function(response){};
725726
request_sender.send();
726727
};
727728
}

0 commit comments

Comments
 (0)