Skip to content
Permalink
Browse files

Rename causes.IN_DIALOG_408_OR_481 to causes.DIALOG_ERROR and add cau…

…ses.RTP_TIMEOUT.
  • Loading branch information
ibc committed Mar 4, 2013
1 parent c79037e commit 71572f7c22be87cba932a636bca3ae50cb18912b
Showing with 4 additions and 3 deletions.
  1. +3 −2 src/Constants.js
  2. +1 −1 src/InDialogRequestSender.js
@@ -33,7 +33,7 @@ JsSIP.C= {
ADDRESS_INCOMPLETE: 'Address Incomplete',
INCOMPATIBLE_SDP: 'Incompatible SDP',
AUTHENTICATION_ERROR: 'Authentication Error',
IN_DIALOG_408_OR_481: 'In-dialog 408 or 481',
DIALOG_ERROR: 'Dialog Error',

// Session error causes
WEBRTC_NOT_SUPPORTED: 'WebRTC Not Supported',
@@ -42,7 +42,8 @@ JsSIP.C= {
EXPIRES: 'Expires',
NO_ACK: 'No ACK',
USER_DENIED_MEDIA_ACCESS: 'User Denied Media Access',
BAD_MEDIA_DESCRIPTION: 'Bad Media Description'
BAD_MEDIA_DESCRIPTION: 'Bad Media Description',
RTP_TIMEOUT: 'RTP Timeout'
},

SIP_ERROR_CAUSES: {
@@ -39,7 +39,7 @@ InDialogRequestSender.prototype = {
receiveResponse: function(response) {
// RFC3261 14.1. Terminate the dialog if a 408 or 481 is received from a re-Invite.
if (response.status_code === 408 || response.status_code === 481) {
this.applicant.session.ended('remote', response, JsSIP.C.causes.IN_DIALOG_408_OR_481);
this.applicant.session.ended('remote', response, JsSIP.C.causes.DIALOG_ERROR);
}
this.applicant.receiveResponse(response);
}

0 comments on commit 71572f7

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