ненужные переменные убрал

This commit is contained in:
zakhy 2024-11-01 12:01:38 +07:00
parent be21dc963d
commit 405fa7f042

View File

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