diff --git a/apps/workerslocation/commands/radiusip.py b/apps/workerslocation/commands/radiusip.py index fafd76e..3a92b13 100644 --- a/apps/workerslocation/commands/radiusip.py +++ b/apps/workerslocation/commands/radiusip.py @@ -114,7 +114,6 @@ async def receive_messages(websocket, auth_dict): print( "Запрос на отправку аудио. Инициализация трансляции трансляцию..." ) - await set_voice_call_sent(voice_call) await send_messages( websocket, get_transmit_command(promise_id, ssrc, @@ -131,6 +130,7 @@ async def receive_messages(websocket, auth_dict): get_promise_cancel_command(promise_id)) promise_id += 1 print("Трансляция завершена и вызов остановлен.") + await set_voice_call_sent(voice_call) except Exception: logging.error(traceback.format_exc())