Merge pull request #6154 from capilkey/increase-ice-negotiation-timeout

Increase the ICE negotiation timeout from 5 to 10s
This commit is contained in:
Chad Pilkey 2018-10-12 16:27:15 -04:00 committed by GitHub
commit a21325e3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,7 @@ function stopWebRTCAudioTestJoinConference(){
webRTCCallback({'status': 'transferring'});
transferTimeout = setTimeout( function() {
console.log("Call transfer failed. No response after 3 seconds");
console.log("Call transfer failed. No response after 5 seconds");
webRTCCallback({'status': 'failed', 'errorcode': 1008});
releaseUserMedia();
currentSession = null;
@ -501,7 +501,7 @@ function make_call(username, voiceBridge, server, callback, recall, isListenOnly
callback({'status':'waitingforice'});
console.log('Waiting for ICE negotiation');
iceConnectedTimeout = setTimeout(function() {
console.log('5 seconds without ICE finishing');
console.log('10 seconds without ICE finishing');
callback({'status':'failed', 'errorcode': 1010}); // ICE negotiation timeout
releaseUserMedia();
currentSession = null;
@ -510,7 +510,7 @@ function make_call(username, voiceBridge, server, callback, recall, isListenOnly
userAgent = null;
userAgentTemp.stop();
}
}, 5000);
}, 10000);
}
clearTimeout(callTimeout);
});