From 0b2d9b237b16f21968f9caa8441e3ac4ecd18935 Mon Sep 17 00:00:00 2001 From: zakhy Date: Fri, 18 Apr 2025 12:08:31 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BE=D1=80=D0=B8=D1=82?= =?UTF-8?q?=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/workerslocation/commands/radiusip.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/workerslocation/commands/radiusip.py b/apps/workerslocation/commands/radiusip.py index 12f8556..6f3b152 100644 --- a/apps/workerslocation/commands/radiusip.py +++ b/apps/workerslocation/commands/radiusip.py @@ -126,12 +126,13 @@ async def receive_messages(websocket, auth_dict): elif identifier == "call:1/participant_state_broadcast": participant_events.append(message_item["payload"]) - elif identifier == "core/promise_response" and message_item["payload"].get("identifier") == "call:1/transmit_response": + elif identifier == "core/promise_response": payload = message_item["payload"] if payload["state"] == "granted" and current_voice_call: granted_event_id = payload.get("event_id") log("Разрешение получено. Ожидаем подтверждение own_tx...") - confirmed = await wait_for_own_tx(granted_event_id, source_id, participant_events) + # confirmed = await wait_for_own_tx(granted_event_id, source_id, participant_events) + confirmed = True if confirmed: log("own_tx подтвержден. Начинаем трансляцию...") await set_voice_call_sent(current_voice_call)