Skip to content

Commit

Permalink
Rename causes.IN_DIALOG_408_OR_481 to causes.DIALOG_ERROR and add cau…
Browse files Browse the repository at this point in the history
…ses.RTP_TIMEOUT.
  • Loading branch information
ibc committed Mar 4, 2013
1 parent c79037e commit 71572f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion src/InDialogRequestSender.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 71572f7

Please sign in to comment.