Skip to content

Commit

Permalink
Fixed failure causes in 'registrationFailed' UA event.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Nov 14, 2012
1 parent b635078 commit 0c91285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Registrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ JsSIP.Registrator.prototype = {
* @private
*/
this.onRequestTimeout = function() {
this.registrationFailure(null, JsSIP.c.REQUEST_TIMEOUT);
this.registrationFailure(null, JsSIP.c.causes.REQUEST_TIMEOUT);
};

/**
* @private
*/
this.onTransportError = function() {
this.registrationFailure(null, JsSIP.c.CONNECTION_ERROR);
this.registrationFailure(null, JsSIP.c.causes.CONNECTION_ERROR);
};

request_sender.send();
Expand Down

0 comments on commit 0c91285

Please sign in to comment.