Commit 5854549302759fd56cc1a93d5f8df27bc415367b
1 parent
b4c59662
x修改心跳失效时间从180到255
Showing
2 changed files
with
2 additions
and
4 deletions
src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
| 1 | package com.genersoft.iot.vmp.conf; | 1 | package com.genersoft.iot.vmp.conf; |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | -import org.springframework.beans.factory.annotation.Value; | ||
| 5 | import org.springframework.boot.context.properties.ConfigurationProperties; | 4 | import org.springframework.boot.context.properties.ConfigurationProperties; |
| 6 | -import org.springframework.context.annotation.Configuration; | ||
| 7 | import org.springframework.stereotype.Component; | 5 | import org.springframework.stereotype.Component; |
| 8 | 6 | ||
| 9 | @Component | 7 | @Component |
| @@ -27,7 +25,7 @@ public class SipConfig { | @@ -27,7 +25,7 @@ public class SipConfig { | ||
| 27 | 25 | ||
| 28 | Integer ptzSpeed = 50; | 26 | Integer ptzSpeed = 50; |
| 29 | 27 | ||
| 30 | - Integer keepaliveTimeOut = 180; | 28 | + Integer keepaliveTimeOut = 255; |
| 31 | 29 | ||
| 32 | Integer registerTimeInterval = 60; | 30 | Integer registerTimeInterval = 60; |
| 33 | 31 |
src/main/resources/all-application.yml
| @@ -73,7 +73,7 @@ sip: | @@ -73,7 +73,7 @@ sip: | ||
| 73 | # [可选] 默认设备认证密码,后续扩展使用设备单独密码, 移除密码将不进行校验 | 73 | # [可选] 默认设备认证密码,后续扩展使用设备单独密码, 移除密码将不进行校验 |
| 74 | password: admin123 | 74 | password: admin123 |
| 75 | # [可选] 心跳超时时间, 建议设置为心跳周期的三倍 | 75 | # [可选] 心跳超时时间, 建议设置为心跳周期的三倍 |
| 76 | - keepalive-timeout: 180 | 76 | + keepalive-timeout: 255 |
| 77 | # [可选] 国标级联注册失败,再次发起注册的时间间隔。 默认60秒 | 77 | # [可选] 国标级联注册失败,再次发起注册的时间间隔。 默认60秒 |
| 78 | register-time-interval: 60 | 78 | register-time-interval: 60 |
| 79 | # [可选] 云台控制速度 | 79 | # [可选] 云台控制速度 |