diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SipTransactionInfo.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SipTransactionInfo.java index c04a6959..bd16f161 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SipTransactionInfo.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SipTransactionInfo.java @@ -1,6 +1,5 @@ package com.genersoft.iot.vmp.gb28181.bean; -import gov.nist.javax.sip.message.SIPRequest; import gov.nist.javax.sip.message.SIPResponse; public class SipTransactionInfo { diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/RegisterRequestProcessor.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/RegisterRequestProcessor.java index 30c3be22..a60a36a3 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/RegisterRequestProcessor.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/RegisterRequestProcessor.java @@ -48,7 +48,7 @@ import java.util.Locale; @RequiredArgsConstructor public class RegisterRequestProcessor extends SIPRequestProcessorParent implements InitializingBean, ISIPRequestProcessor { public static final String METHOD = "REGISTER"; - + private final SipConfig sipConfig; private final SIPProcessorObserver sipProcessorObserver; @@ -215,6 +215,7 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen GbSipDate gbSipDate = new GbSipDate(Calendar.getInstance(Locale.ENGLISH).getTimeInMillis()); dateHeader.setDate(gbSipDate); response.addHeader(dateHeader); + log.debug("dateHeader => {}",dateHeader); // 添加Contact头 response.addHeader(request.getHeader(ContactHeader.NAME)); diff --git a/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java index b75b4771..9fba55d0 100644 --- a/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java @@ -274,7 +274,8 @@ public class PlatformServiceImpl implements IPlatformService { commanderForPlatform.register(parentPlatform, sipTransactionInfo, eventResult -> { logger.info("[国标级联] 平台:{}注册失败,{}:{}", parentPlatform.getServerGBId(), eventResult.statusCode, eventResult.msg); - offline(parentPlatform, false); + // 国标级联 续订失败不要主动断开 + // offline(parentPlatform, false); }, null); } catch (InvalidArgumentException | ParseException | SipException e) { logger.error("[命令发送失败] 国标级联定时注册: {}", e.getMessage());