From 80c32f355637b40d6854a93f023a943cb9672acd Mon Sep 17 00:00:00 2001 From: Sergey Krasnikov Date: Thu, 28 Aug 2014 15:57:12 +0400 Subject: [PATCH] ICE connection RTP timeout status fix --- src/RTCSession/RTCMediaHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RTCSession/RTCMediaHandler.js b/src/RTCSession/RTCMediaHandler.js index fc37282f9..6485503c0 100644 --- a/src/RTCSession/RTCMediaHandler.js +++ b/src/RTCSession/RTCMediaHandler.js @@ -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,