Skip to content

Commit

Permalink
Fix #367
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Apr 6, 2016
1 parent 7790ffd commit 68f0af8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/RTCSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,10 @@ RTCSession.prototype.receiveRequest = function(request) {

if (this.late_sdp) {
if (!request.body) {
ended.call(this, 'remote', request, JsSIP_C.causes.MISSING_SDP);
this.terminate({
cause: JsSIP_C.causes.MISSING_SDP,
status_code: 400
});
break;
}

Expand All @@ -1239,7 +1242,10 @@ RTCSession.prototype.receiveRequest = function(request) {
},
// failure
function() {
ended.call(self, 'remote', request, JsSIP_C.causes.BAD_MEDIA_DESCRIPTION);
self.terminate({
cause: JsSIP_C.causes.BAD_MEDIA_DESCRIPTION,
status_code: 488
});
}
);
}
Expand Down

0 comments on commit 68f0af8

Please sign in to comment.