Skip to content

Commit

Permalink
ICE connection RTP timeout status fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Krasnikov committed Aug 28, 2014
1 parent f5a324d commit 80c32f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RTCSession/RTCMediaHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ RTCMediaHandler.prototype = {
this.peerConnection.oniceconnectionstatechange = function() {
self.logger.log('ICE connection state changed to "'+ this.iceConnectionState +'"');

if (this.iceConnectionState === 'disconnected') {
if (this.iceConnectionState === 'failed') {
self.session.terminate({
cause: JsSIP.C.causes.RTP_TIMEOUT,
status_code: 200,
Expand Down

0 comments on commit 80c32f3

Please sign in to comment.