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)