panlinlin
2021-04-26 b92027f31ef24583e8b9d4c2dc44c7e9262a2023
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/MessageRequestProcessor.java
@@ -40,7 +40,7 @@
import com.genersoft.iot.vmp.utils.GpsUtil;
import com.genersoft.iot.vmp.utils.SpringBeanFactory;
import com.genersoft.iot.vmp.utils.redis.RedisUtil;
import com.genersoft.iot.vmp.vmanager.platform.bean.ChannelReduce;
import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce;
import gov.nist.javax.sip.SipStackImpl;
import gov.nist.javax.sip.address.AddressImpl;
@@ -238,7 +238,7 @@
               // 回复200 OK
               responseAck(evt);
               String sn = rootElement.element("SN").getText();
               ParentPlatform parentPlatform = storager.queryParentPlatById(platformId);
               ParentPlatform parentPlatform = storager.queryParentPlatByServerGBId(platformId);
               cmderFroPlatform.deviceStatusResponse(parentPlatform, sn, fromHeader.getTag());
            }
         } else {
@@ -303,7 +303,7 @@
               if (deviceId.equals(targetGBId)) {
                  // 远程启动本平台:需要在重新启动程序后先对SipStack解绑
                  logger.info("执行远程启动本平台命令");
                  ParentPlatform parentPlatform = storager.queryParentPlatById(platformId);
                  ParentPlatform parentPlatform = storager.queryParentPlatByServerGBId(platformId);
                  cmderFroPlatform.unregister(parentPlatform, null, null);
   
                  Thread restartThread = new Thread(new Runnable() {
@@ -463,7 +463,7 @@
               // 回复200 OK
               responseAck(evt);
               String sn = rootElement.element("SN").getText();
               ParentPlatform parentPlatform = storager.queryParentPlatById(platformId);
               ParentPlatform parentPlatform = storager.queryParentPlatByServerGBId(platformId);
               cmderFroPlatform.deviceInfoResponse(parentPlatform, sn, fromHeader.getTag());
            }
         } else {
@@ -517,7 +517,7 @@
         // if (deviceListElement == null) { // 存在DeviceList则为响应 catalog, 不存在DeviceList则为查询请求
         if (name.equalsIgnoreCase("Query")) { // 区分是Response——查询响应,还是Query——查询请求
            // TODO 后续将代码拆分
            ParentPlatform parentPlatform = storager.queryParentPlatById(platformId);
            ParentPlatform parentPlatform = storager.queryParentPlatByServerGBId(platformId);
            if (parentPlatform == null) {
               response404Ack(evt);
               return;
@@ -922,7 +922,7 @@
            StreamInfo streamInfo = redisCatchStorage.queryPlaybackByDevice(deviceId, "*");
            if (streamInfo != null) {
               redisCatchStorage.stopPlayback(streamInfo);
               cmder.streamByeCmd(streamInfo.getStreamId());
               cmder.streamByeCmd(streamInfo.getDeviceID(), streamInfo.getChannelId());
            }
         }
      } catch (ParseException | SipException | InvalidArgumentException | DocumentException e) {