From 616498e8a2321b9e67aace1ed3e6e4a012a2117e Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Sun, 19 Dec 2021 13:52:01 +0200 Subject: [PATCH] - better logging + initial sips: tests --- src/engine/agent/Agent_Impl.cpp | 3 +++ src/engine/endpoint/EP_Engine.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/agent/Agent_Impl.cpp b/src/engine/agent/Agent_Impl.cpp index e52e9819..84234055 100644 --- a/src/engine/agent/Agent_Impl.cpp +++ b/src/engine/agent/Agent_Impl.cpp @@ -175,6 +175,9 @@ void AgentImpl::processConfig(JsonCpp::Value &d, JsonCpp::Value &answer) config()[CONFIG_IPV4] = d["ipv4"].asBool(); config()[CONFIG_IPV6] = d["ipv6"].asBool(); + if (transport == "tls") + config()[CONFIG_SIPS] = true; + // Log file std::string logfile = d["logfile"].asString(); ice::Logger& logger = ice::GLogger; diff --git a/src/engine/endpoint/EP_Engine.cpp b/src/engine/endpoint/EP_Engine.cpp index 6ca93e14..2894f5a3 100644 --- a/src/engine/endpoint/EP_Engine.cpp +++ b/src/engine/endpoint/EP_Engine.cpp @@ -93,7 +93,7 @@ void UserAgent::start() } // Initialize resip loggег - resip::Log::initialize(resip::Log::OnlyExternal, resip::Log::Info, "Client", *this); + resip::Log::initialize(resip::Log::OnlyExternal, resip::Log::Debug, "Client", *this); // Build list of nameservers if specified resip::DnsStub::NameserverList nslist;