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