From 97494c35315db68a1b0e5da4d4df4f7192476965 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Mon, 24 Feb 2025 18:17:23 +0200 Subject: [PATCH] janus: replaces STUN variables to ICE_URL --- janus/src/plugin.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/janus/src/plugin.c b/janus/src/plugin.c index 0073495..43b05f9 100644 --- a/janus/src/plugin.c +++ b/janus/src/plugin.c @@ -670,15 +670,11 @@ static struct janus_plugin_result *_plugin_handle_message( } } else if (!strcmp(request_str, "features")) { - const char *const stun_host = getenv("JANUS_USTREAMER_WEB_STUN_HOST"); - const char *const stun_port = getenv("JANUS_USTREAMER_WEB_STUN_PORT"); json_t *const features = json_pack( - "{s:b, s:b, s:{s:s, s:i}}", + "{s:b, s:b, s:{s:s?}}", "audio", (_g_rtpa != NULL), "mic", (_g_rtpa != NULL && _g_config->aplay_dev_name != NULL), - "stun", - "host", (stun_host != NULL ? stun_host : ""), - "port", (stun_port != NULL ? atoi(stun_port) : 0) + "ice", "url", getenv("JANUS_USTREAMER_WEB_ICE_URL") ); PUSH_STATUS("features", features, NULL); json_decref(features);