From 345dc5327d87e3a35e31daa32678bbe99f2a742d Mon Sep 17 00:00:00 2001 From: Juan Navarro Date: Mon, 8 Jul 2024 18:20:47 +0200 Subject: [PATCH] Use "port_range_start/end" instead of udp_port for ICE range mediasoup is not compatible with the UDP port multiplexing that LiveKit uses when the `udp_port` setting is enabled, so it won't work anyways and it's better to bt consistent between both Pion and mediasoup engines. Also extend the port range to 100 ports, given that now the multiplexing feature won't be in use. 100 seems like a big enough range for local development. --- pro/docker-compose.yaml | 2 +- pro/livekit.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pro/docker-compose.yaml b/pro/docker-compose.yaml index 9b88622..1c39f4a 100644 --- a/pro/docker-compose.yaml +++ b/pro/docker-compose.yaml @@ -104,7 +104,7 @@ services: ports: - 3478:3478/udp - 7881:7881/tcp - - 7882-7892:7882-7892/udp + - 7900-7999:7900-7999/udp entrypoint: /bin/sh /scripts/entrypoint.sh command: --config /etc/livekit.yaml volumes: diff --git a/pro/livekit.yaml b/pro/livekit.yaml index 55eb8d2..4af76ba 100644 --- a/pro/livekit.yaml +++ b/pro/livekit.yaml @@ -36,7 +36,8 @@ bind_addresses: - "" rtc: tcp_port: 7881 - udp_port: 7882-7892 + port_range_start: 7900 + port_range_end: 7999 redis: address: redis:6379 username: ""