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("Трансляция завершена и вызов остановлен.")