From 405fa7f042c05d77a45bd69e1a91af415bc62cb4 Mon Sep 17 00:00:00 2001 From: zakhy Date: Fri, 1 Nov 2024 12:01:38 +0700 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D1=83=D0=B6=D0=BD=D1=8B?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D0=B5=20=D1=83=D0=B1=D1=80=D0=B0=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/workerslocation/commands/radiusip.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/workerslocation/commands/radiusip.py b/apps/workerslocation/commands/radiusip.py index 3b2591b..cea5424 100644 --- a/apps/workerslocation/commands/radiusip.py +++ b/apps/workerslocation/commands/radiusip.py @@ -15,7 +15,6 @@ from asgiref.sync import sync_to_async # Настройки для WebSocket и RTP -API_HOST = '192.168.51.163' API_PORT = 18500 SSRC = 269484035 RTP_PAYLOAD_TYPE = 8 # G.711A @@ -102,7 +101,7 @@ async def receive_messages(websocket, auth_dict): await set_voice_call_sent(voice_call) await send_messages(websocket, get_transmit_command(promise_id, ssrc, auth_dict['raduisip_group'])) logging.log("Начало трансляции файла.") - await start_audio_stream(voice_call.alarm_file.audio_file.path, API_HOST, voip_port, ssrc) + await start_audio_stream(voice_call.alarm_file.audio_file.path, auth_dict['radiusip_host_ws'], voip_port, ssrc) await send_messages(websocket, get_promise_cancel_command(promise_id)) promise_id += 1 logging.log("Трансляция завершена и вызов остановлен.")