diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java index 91ea5f11..cbb7def3 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java @@ -86,7 +86,10 @@ public class MessageRequestProcessor extends SIPRequestProcessorParent implement try { rootElement = getRootElement(evt); if (rootElement != null) { - deviceId = getText(rootElement, "DeviceID"); + String cmdType = getText(rootElement, "CmdType"); + if(cmdType.equalsIgnoreCase("MediaStatus")){ + deviceId = getText(rootElement, "DeviceID"); + } } } catch (Exception ignore) {} }