From 4c4b62cb3aa129d373bfe9aeabde33de9bacdafd Mon Sep 17 00:00:00 2001 From: 64850858 <648540858@qq.com> Date: Tue, 8 Jun 2021 15:49:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E7=BA=A7?= =?UTF-8?q?=E8=81=94=E6=B3=A8=E5=86=8C=E5=A4=B1=E8=B4=A5=E6=97=B6=E5=86=8D?= =?UTF-8?q?=E6=AC=A1=E6=B3=A8=E5=86=8C=E7=9A=84=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java | 7 ++++++- .../PlatformNotRegisterEventLister.java | 6 +++++- src/main/resources/all-application.yml | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java b/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java index 6db63ee3..404620ae 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java @@ -34,6 +34,9 @@ public class SipConfig { @Value("${sip.keepaliveTimeOut:180}") Integer keepaliveTimeOut; + @Value("${sip.registerTimeInterval:60}") + Integer registerTimeInterval; + public String getMonitorIp() { return monitorIp; } @@ -70,5 +73,7 @@ public class SipConfig { return keepaliveTimeOut; } - + public Integer getRegisterTimeInterval() { + return registerTimeInterval; + } } diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/event/platformNotRegister/PlatformNotRegisterEventLister.java b/src/main/java/com/genersoft/iot/vmp/gb28181/event/platformNotRegister/PlatformNotRegisterEventLister.java index 7e59910c..a475a1ba 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/event/platformNotRegister/PlatformNotRegisterEventLister.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/event/platformNotRegister/PlatformNotRegisterEventLister.java @@ -1,5 +1,6 @@ package com.genersoft.iot.vmp.gb28181.event.platformNotRegister; +import com.genersoft.iot.vmp.conf.SipConfig; import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform; import com.genersoft.iot.vmp.gb28181.bean.SendRtpItem; import com.genersoft.iot.vmp.gb28181.event.SipSubscribe; @@ -38,6 +39,9 @@ public class PlatformNotRegisterEventLister implements ApplicationListener