From 344994c7f0fcbaca7fd2ee70494a60cd9c7ba6a3 Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期一, 12 四月 2021 18:33:58 +0800 Subject: [PATCH] 解决级联通道名称中文乱码 --- src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java index 7945dcd..3789771 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java @@ -172,6 +172,7 @@ private void transmitRequest(ParentPlatform parentPlatform, Request request, SipSubscribe.Event errorEvent , SipSubscribe.Event okEvent) throws SipException { if("TCP".equals(parentPlatform.getTransport())) { tcpSipProvider.sendRequest(request); + } else if("UDP".equals(parentPlatform.getTransport())) { udpSipProvider.sendRequest(request); } @@ -264,9 +265,9 @@ deviceInfoXml.append("<CmdType>DeviceInfo</CmdType>\r\n"); deviceInfoXml.append("<SN>" +sn + "</SN>\r\n"); deviceInfoXml.append("<DeviceID>" + parentPlatform.getDeviceGBId() + "</DeviceID>\r\n"); - deviceInfoXml.append("<DeviceName>GB28181 Video Platform</DeviceName>\r\n"); - deviceInfoXml.append("<Manufacturer>Manufacturer</Manufacturer>\r\n"); - deviceInfoXml.append("<Model>wvp-28181</Model>\r\n"); + deviceInfoXml.append("<DeviceName>WVP-GB28181</DeviceName>\r\n"); + deviceInfoXml.append("<Manufacturer>WVP</Manufacturer>\r\n"); + deviceInfoXml.append("<Model>wvp-28181-2.0</Model>\r\n"); deviceInfoXml.append("<Firmware>2.0.202103</Firmware>\r\n"); deviceInfoXml.append("<Result>OK</Result>\r\n"); deviceInfoXml.append("</Response>\r\n"); -- Gitblit v1.8.0