Commit fec69c714c632eaed01f77cb419d1d6a02e273ea

Authored by 648540858
1 parent f3069376

优化国标信令

src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java
@@ -214,6 +214,7 @@ public class SIPCommanderFroPlatform implements ISIPCommanderForPlatform { @@ -214,6 +214,7 @@ public class SIPCommanderFroPlatform implements ISIPCommanderForPlatform {
214 continue; 214 continue;
215 }else { 215 }else {
216 if (channel.getChannelId().length() != 20) { 216 if (channel.getChannelId().length() != 20) {
  217 + catalogXml.append("</Item>\r\n");
217 continue; 218 continue;
218 } 219 }
219 switch (Integer.parseInt(channel.getChannelId().substring(10, 13))){ 220 switch (Integer.parseInt(channel.getChannelId().substring(10, 13))){
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/response/impl/RegisterResponseProcessor.java
@@ -102,7 +102,7 @@ public class RegisterResponseProcessor extends SIPResponseProcessorAbstract { @@ -102,7 +102,7 @@ public class RegisterResponseProcessor extends SIPResponseProcessorAbstract {
102 SipTransactionInfo sipTransactionInfo = new SipTransactionInfo(response); 102 SipTransactionInfo sipTransactionInfo = new SipTransactionInfo(response);
103 platformService.online(parentPlatform, sipTransactionInfo); 103 platformService.online(parentPlatform, sipTransactionInfo);
104 }else { 104 }else {
105 - platformService.offline(parentPlatform, false); 105 + platformService.offline(parentPlatform, true);
106 } 106 }
107 107
108 // 注册/注销成功移除缓存的信息 108 // 注册/注销成功移除缓存的信息