From 78a5c642c3bd73c5d9c2ebbf3e64c0eadd32562e Mon Sep 17 00:00:00 2001 From: zakhy Date: Fri, 18 Apr 2025 13:06:58 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=8B=D1=82=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=87=D0=B8=D0=BD=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/workerslocation/commands/radiusip.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/workerslocation/commands/radiusip.py b/apps/workerslocation/commands/radiusip.py index 42cca2b..fa80ed8 100644 --- a/apps/workerslocation/commands/radiusip.py +++ b/apps/workerslocation/commands/radiusip.py @@ -104,8 +104,15 @@ async def receive_messages(websocket, auth_dict): elif identifier == "location:0/position_broadcast" and auth_dict.get("wlocationsystem"): await save_location(message_item["payload"]) - - elif identifier == "core/promise_response" and message_item["payload"].get("identifier") == "call:1/transmit_response": + a = {'identifier': 'call:1/participant_state_broadcast', + 'payload': {'composite_call_id': 79333, + 'participant_call_id': 79335, + 'state': 'own_tx', 'channel_id': 18874592, + 'source': 'dmr:65280@subscribers.global', + 'target': 'dmr:1@groups.18874592.global', + 'modifier': 'not', + 'state_change_reason': 'none'}} + elif identifier == "core/promise_response" and waiting_for_grant: payload = message_item["payload"] if payload["state"] == "granted" and current_voice_call: log("Разрешение получено. Начинаем трансляцию...")