From d73d758c62313c797ebcf2e954ed4891ea52a804 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Thu, 10 Aug 2023 01:38:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../docking/gb28181/core/sip/logger/ServerLoggerImpl.java | 6 +++--- .../docking/gb28181/core/sip/service/SipServiceImpl.java | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/logger/ServerLoggerImpl.java b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/logger/ServerLoggerImpl.java index 07138e4..0aea692 100644 --- a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/logger/ServerLoggerImpl.java +++ b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/logger/ServerLoggerImpl.java @@ -25,7 +25,7 @@ public class ServerLoggerImpl implements ServerLogger { if (!showLog) { return; } - String log = (sender ? "发送: 目标 =>" + from : "接收: 来自 => " + to) + "\r\n" + message; + String log = (sender ? "发送: 目标 =>" + to : "接收: 来自 => " + from) + "\r\n" + message; this.stackLogger.logInfo(log); } @@ -34,7 +34,7 @@ public class ServerLoggerImpl implements ServerLogger { if (!showLog) { return; } - String log = (sender ? "发送: 目标 =>" + from : "接收: 来自 => " + to) + "\r\n" + message; + String log = (sender ? "发送: 目标 =>" + to : "接收: 来自 => " + from) + "\r\n" + message; this.stackLogger.logInfo(log); } @@ -43,7 +43,7 @@ public class ServerLoggerImpl implements ServerLogger { if (!showLog) { return; } - String log = (sender ? "发送: 目标 =>" + from : "接收: 来自 => " + to) + "\r\n" + message; + String log = (sender ? "发送: 目标 =>" + to : "接收: 来自 => " + from) + "\r\n" + message; this.stackLogger.logInfo(log); } diff --git a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/service/SipServiceImpl.java b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/service/SipServiceImpl.java index dc01959..a8f06cb 100644 --- a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/service/SipServiceImpl.java +++ b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/service/SipServiceImpl.java @@ -5,7 +5,6 @@ import cn.skcks.docking.gb28181.core.sip.message.parser.GbStringMsgParserFactory import cn.skcks.docking.gb28181.core.sip.properties.DefaultProperties; import gov.nist.javax.sip.SipProviderImpl; import gov.nist.javax.sip.SipStackImpl; -import gov.nist.javax.sip.stack.MessageProcessorFactory; import lombok.Data; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j;