From 5b3dd61deb2e7e0478bff72a854f68182fd2c2b1 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 9 Oct 2022 22:37:06 +0800 Subject: [PATCH] GB28181: Fix sip.candidate configuration bug. v5.0.77 --- trunk/src/app/srs_app_config.cpp | 5 +++++ trunk/src/core/srs_core_version5.hpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 9e2053c55..a2d6142b2 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -3934,6 +3934,11 @@ std::string SrsConfig::get_stream_caster_sip_candidate(SrsConfDirective* conf) return DEFAULT; } + conf = conf->get("sip"); + if (!conf) { + return DEFAULT; + } + conf = conf->get("candidate"); if (!conf || conf->arg0().empty()) { return DEFAULT; diff --git a/trunk/src/core/srs_core_version5.hpp b/trunk/src/core/srs_core_version5.hpp index 4218cc5b1..95faef15d 100644 --- a/trunk/src/core/srs_core_version5.hpp +++ b/trunk/src/core/srs_core_version5.hpp @@ -9,6 +9,6 @@ #define VERSION_MAJOR 5 #define VERSION_MINOR 0 -#define VERSION_REVISION 76 +#define VERSION_REVISION 77 #endif