Skip to content
Permalink
Browse files

Fix references to 'this'

s/this/session/ in RTCSession.prototype.receiveInviteResponse

Set 'this' to the UA instance in the configuration check to prevent
calls to 'this.logger' from failing
  • Loading branch information
Rob--W authored and jmillan committed Oct 27, 2014
1 parent 9ea89fe commit 3b1ee113db62ab8e2727a28772a9758db5ecf0c6
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/RTCSession.js
  2. +2 −2 src/UA.js
@@ -1634,7 +1634,7 @@ RTCSession.prototype.receiveInviteResponse = function(response) {
*/
function(e) {
session.logger.warn(e);
this.earlyDialogs[response.call_id + response.from_tag + response.to_tag].terminate();
session.earlyDialogs[response.call_id + response.from_tag + response.to_tag].terminate();
}
);
break;
@@ -794,7 +794,7 @@ UA.prototype.loadConfig = function(configuration) {
throw new JsSIP.Exceptions.ConfigurationError(parameter);
} else {
value = configuration[parameter];
checked_value = UA.configuration_check.mandatory[parameter](value);
checked_value = UA.configuration_check.mandatory[parameter].call(this, value);
if (checked_value !== undefined) {
settings[parameter] = checked_value;
} else {
@@ -815,7 +815,7 @@ UA.prototype.loadConfig = function(configuration) {
continue;
}

checked_value = UA.configuration_check.optional[parameter](value);
checked_value = UA.configuration_check.optional[parameter].call(this, value);
if (checked_value !== undefined) {
settings[parameter] = checked_value;
} else {

0 comments on commit 3b1ee11

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