Убрать настройку таймаута звонка

This commit is contained in:
AidarKC
2026-11-30 11:38:18 +03:00
parent 1621537d77
commit 3f3e93c87d
3 changed files with 4 additions and 7 deletions
+2 -2
View File
@@ -44,6 +44,7 @@ const DEFAULT_ICE_SERVERS = Object.freeze([
{ urls: 'stun:stun.l.google.com:19302' },
]);
const CALL_SUMMARY_MIN_TOTAL_MS = 5000;
const CALL_PREFLIGHT_TIMEOUT_MS = 6000;
const OUTGOING_NO_ACK_TIMEOUT_MS = 10_000;
const OUTGOING_DELIVERED_NO_ACK_TIMEOUT_MS = 25_000;
const INCOMING_CONNECT_TIMEOUT_MS = 20_000;
@@ -269,8 +270,7 @@ function setRemoteSessionId(call, sessionId, reason = '') {
}
function resolveCallPreflightTimeoutMs() {
const configured = Number(state?.entrySettings?.callPreflightTimeoutMs || 6000);
return Math.max(1000, Math.min(20000, Number.isFinite(configured) ? configured : 6000));
return CALL_PREFLIGHT_TIMEOUT_MS;
}
function isSessionReadyForCall() {