判断设备离线时发送状态查询确定设备真实状态,确定离线再设置为离线
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user