From 5854549302759fd56cc1a93d5f8df27bc415367b Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Wed, 10 Nov 2021 17:08:52 +0800 Subject: [PATCH] =?UTF-8?q?x=E4=BF=AE=E6=94=B9=E5=BF=83=E8=B7=B3=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E6=97=B6=E9=97=B4=E4=BB=8E180=E5=88=B0255?= 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 | 4 +--- src/main/resources/all-application.yml | 2 +- 2 files changed, 2 insertions(+), 4 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 709fe9c1..2d307925 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java @@ -1,9 +1,7 @@ package com.genersoft.iot.vmp.conf; -import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.context.annotation.Configuration; import org.springframework.stereotype.Component; @Component @@ -27,7 +25,7 @@ public class SipConfig { Integer ptzSpeed = 50; - Integer keepaliveTimeOut = 180; + Integer keepaliveTimeOut = 255; Integer registerTimeInterval = 60; diff --git a/src/main/resources/all-application.yml b/src/main/resources/all-application.yml index f2d85ec0..e7d68106 100644 --- a/src/main/resources/all-application.yml +++ b/src/main/resources/all-application.yml @@ -73,7 +73,7 @@ sip: # [可选] 默认设备认证密码,后续扩展使用设备单独密码, 移除密码将不进行校验 password: admin123 # [可选] 心跳超时时间, 建议设置为心跳周期的三倍 - keepalive-timeout: 180 + keepalive-timeout: 255 # [可选] 国标级联注册失败,再次发起注册的时间间隔。 默认60秒 register-time-interval: 60 # [可选] 云台控制速度