判断设备离线时发送状态查询确定设备真实状态,确定离线再设置为离线

This commit is contained in:
lin
2025-03-13 11:23:49 +08:00
parent 108cdf1a13
commit 5539f52d13
3 changed files with 35 additions and 17 deletions

View File

@@ -58,11 +58,6 @@ public class DeviceStatusResponseMessageHandler extends SIPRequestProcessorParen
log.debug(json.toJSONString());
}
String text = onlineElement.getText();
if ("ONLINE".equalsIgnoreCase(text.trim())) {
deviceService.online(device, null);
}else {
deviceService.offline(device.getDeviceId(), "设备状态查询结果:" + text.trim());
}
responseMessageHandler.handMessageEvent(element, text);
}