Commit 8553769e76ad1026cddc3293c5b6b4186e391dd0

Authored by 648540858
1 parent 7ad28af0

补充xml缺失的编码信息

src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommanderFroPlatform.java
... ... @@ -145,9 +145,9 @@ public class SIPCommanderFroPlatform implements ISIPCommanderForPlatform {
145 145 public String keepalive(ParentPlatform parentPlatform) {
146 146 String callId = null;
147 147 try {
148   -
  148 + String characterSet = parentPlatform.getCharacterSet();
149 149 StringBuffer keepaliveXml = new StringBuffer(200);
150   - keepaliveXml.append("<?xml version=\"1.0\"?>\r\n");
  150 + keepaliveXml.append("<?xml version=\"1.0\" encoding=\"" + characterSet + "\"?>\r\n");
151 151 keepaliveXml.append("<Notify>\r\n");
152 152 keepaliveXml.append("<CmdType>Keepalive</CmdType>\r\n");
153 153 keepaliveXml.append("<SN>" + (int)((Math.random()*9+1)*100000) + "</SN>\r\n");
... ...