Звонки: дольше показывать статус занято; deployServer проверяет sudo -n

This commit is contained in:
AidarKC
2026-05-02 19:05:54 +03:00
parent c0c29b74ab
commit e921b06826
3 changed files with 31 additions and 5 deletions
+15
View File
@@ -853,8 +853,23 @@ async function finalizeCall(call, {
call.phase = 'ended';
call.statusText = 'Звонок завершён';
if (String(localReasonCode || '') === 'busy') {
call.statusText = 'Пользователь занят';
}
notifyCallState();
const finalHoldMs = String(localReasonCode || '') === 'busy' ? 2600 : 0;
if (finalHoldMs > 0) {
window.setTimeout(() => {
calls.delete(call.callId);
if (activeCallId === call.callId) {
activeCallId = '';
}
notifyCallState();
}, finalHoldMs);
return;
}
calls.delete(call.callId);
if (activeCallId === call.callId) {
activeCallId = '';