Попытка починки

This commit is contained in:
zakhy 2025-04-18 13:06:58 +07:00
parent 8303d2a6f9
commit 78a5c642c3

View File

@ -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("Разрешение получено. Начинаем трансляцию...")