Commit eefd6a0e21036f952c8454046fceef35ae0df77d
Committed by
GitHub
Merge pull request #993 from a24211317/wvp-28181-2.0
平台保活消息增加回复200OK
Showing
1 changed file
with
6 additions
and
2 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/notify/cmd/KeepaliveNotifyMessageHandler.java
| ... | ... | @@ -109,7 +109,11 @@ public class KeepaliveNotifyMessageHandler extends SIPRequestProcessorParent imp |
| 109 | 109 | |
| 110 | 110 | @Override |
| 111 | 111 | public void handForPlatform(RequestEvent evt, ParentPlatform parentPlatform, Element element) { |
| 112 | - // 不会收到上级平台的心跳信息 | |
| 113 | - | |
| 112 | + // 个别平台保活不回复200OK会判定离线 | |
| 113 | + try { | |
| 114 | + responseAck((SIPRequest) evt.getRequest(), Response.OK); | |
| 115 | + } catch (SipException | InvalidArgumentException | ParseException e) { | |
| 116 | + logger.error("[命令发送失败] 心跳回复: {}", e.getMessage()); | |
| 117 | + } | |
| 114 | 118 | } |
| 115 | 119 | } | ... | ... |