From f02d18e1e3b3f50dff5daa6d04bf2127c5b35c64 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Fri, 6 Oct 2023 13:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=BB=98=E8=AE=A4=E5=AA=92?= =?UTF-8?q?=E4=BD=93=E6=B5=81=20=E6=94=B9=E4=B8=BA=20MediaStreamMode.TCP?= =?UTF-8?q?=5FPASSIVE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processor/register/request/RegisterRequestProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/message/processor/register/request/RegisterRequestProcessor.java b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/message/processor/register/request/RegisterRequestProcessor.java index 935e898..542910e 100644 --- a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/message/processor/register/request/RegisterRequestProcessor.java +++ b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/message/processor/register/request/RegisterRequestProcessor.java @@ -140,14 +140,14 @@ public class RegisterRequestProcessor implements MessageProcessor { if (device == null) { device = new DockingDevice(); - device.setStreamMode(MediaStreamMode.TCP_ACTIVE.getMode()); + device.setStreamMode(MediaStreamMode.TCP_PASSIVE.getMode()); device.setCharset(GB28181Constant.CHARSET); device.setGeoCoordSys(GB28181Constant.GEO_COORD_SYS); device.setDeviceId(deviceId); device.setOnLine(false); } else { if (ObjectUtils.isEmpty(device.getStreamMode())) { - device.setStreamMode(MediaStreamMode.TCP_ACTIVE.getMode()); + device.setStreamMode(MediaStreamMode.TCP_PASSIVE.getMode()); } if (ObjectUtils.isEmpty(device.getCharset())) { device.setCharset(GB28181Constant.CHARSET);