diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java
index 65348ab6..cf8b0a56 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java
@@ -222,7 +222,13 @@ public class SIPCommanderFroPlatform implements ISIPCommanderForPlatform {
catalogXml.append("" + channel.getSecrecy() + "\r\n");
catalogXml.append("" + channel.getRegisterWay() + "\r\n");
catalogXml.append("" + (channel.getStatus() == 0?"OFF":"ON") + "\r\n");
- catalogXml.append("\r\n");
+ catalogXml.append("" + channel.getLongitude() + "\r\n");
+ catalogXml.append("" + channel.getLatitude() + "\r\n");
+ catalogXml.append("" + channel.getIpAddress() + "\r\n");
+ catalogXml.append("" + channel.getPort() + "\r\n");
+ catalogXml.append("\r\n");
+ catalogXml.append("" + channel.getPTZType() + "\r\n");
+ catalogXml.append("\r\n");
}
diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/response/cmd/CatalogResponseMessageHandler.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/response/cmd/CatalogResponseMessageHandler.java
index f8da94b5..9e150689 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/response/cmd/CatalogResponseMessageHandler.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/response/cmd/CatalogResponseMessageHandler.java
@@ -166,10 +166,11 @@ public class CatalogResponseMessageHandler extends SIPRequestProcessorParent imp
} else {
deviceChannel.setLatitude(0.00);
}
- if (getText(itemDevice, "PTZType") == null || getText(itemDevice, "PTZType") == "") {
+ Element InfoNode = channelDeviceElement.element("Info");
+ if (getText(InfoNode, "PTZType") == null || getText(InfoNode, "PTZType") == "") {
deviceChannel.setPTZType(0);
} else {
- deviceChannel.setPTZType(Integer.parseInt(getText(itemDevice, "PTZType")));
+ deviceChannel.setPTZType(Integer.parseInt(getText(InfoNode, "PTZType")));
}
deviceChannel.setHasAudio(true); // 默认含有音频,播放时再检查是否有音频及是否AAC
channelList.add(deviceChannel);