SHA256
Исправить самообрыв звонка и обновить TURN
This commit is contained in:
@@ -1636,7 +1636,13 @@ export async function handleStopCallPush(payload = {}) {
|
||||
if (!callId) return;
|
||||
const call = getCall(callId);
|
||||
if (!call) return;
|
||||
const fromSessionId = String(payload?.fromSessionId || '').trim();
|
||||
const reason = String(payload?.reason || 'stop_call_push').trim() || 'stop_call_push';
|
||||
const currentSessionId = String(state?.session?.sessionId || '').trim();
|
||||
if (fromSessionId && currentSessionId && fromSessionId === currentSessionId) {
|
||||
await emitDebug(call, 'info', 'stop_call_push_ignored_for_origin_session', reason);
|
||||
return;
|
||||
}
|
||||
await finalizeCall(call, {
|
||||
localReasonCode: call.connectedAtMs ? 'completed' : 'no_answer',
|
||||
debugReason: `stop_call_push:${reason}`,
|
||||
|
||||
Reference in New Issue
Block a user