Commit 86c08db2662672e844028437972dae22dac28645

Authored by 648540858
1 parent a02883b3

移除重复方法

src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommander.java
... ... @@ -245,15 +245,6 @@ public interface ISIPCommander {
245 245 */
246 246 void deviceBasicConfigCmd(Device device, String channelId, String name, String expiration, String heartBeatInterval, String heartBeatCount, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
247 247  
248   -
249   - /**
250   - * 设备配置命令:远程启动
251   - *
252   - * @param device 视频设备
253   - */
254   - void deviceTeleBootCmd(Device device, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
255   -
256   -
257 248 /**
258 249 * 查询设备状态
259 250 *
... ...
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java
... ... @@ -908,29 +908,6 @@ public class SIPCommander implements ISIPCommander {
908 908 }
909 909  
910 910 /**
911   - * 设备配置命令:远程启动
912   - *
913   - * @param device 视频设备
914   - */
915   - @Override
916   - public void deviceTeleBootCmd(Device device, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException {
917   -
918   - StringBuffer cmdXml = new StringBuffer(200);
919   - String charset = device.getCharset();
920   - cmdXml.append("<?xml version=\"1.0\" encoding=\"" + charset + "\"?>\r\n");
921   - cmdXml.append("<Control>\r\n");
922   - cmdXml.append("<CmdType>DeviceControl</CmdType>\r\n");
923   - cmdXml.append("<SN>" + (int) ((Math.random() * 9 + 1) * 100000) + "</SN>\r\n");
924   - cmdXml.append("<DeviceID>" + device.getDeviceId() + "</DeviceID>\r\n");
925   - cmdXml.append("<PTZCmd></PTZCmd>\r\n");
926   - cmdXml.append("<TeleBoot>Boot</PTZCmd>\r\n");
927   - cmdXml.append("</Control>\r\n");
928   -
929   - Request request = headerProvider.createMessageRequest(device, cmdXml.toString(), null, SipUtils.getNewFromTag(), null,sipSender.getNewCallIdHeader(sipLayer.getLocalIp(device.getLocalIp()),device.getTransport()));
930   - sipSender.transmitRequest(sipLayer.getLocalIp(device.getLocalIp()), request, errorEvent);
931   - }
932   -
933   - /**
934 911 * 查询设备状态
935 912 *
936 913 * @param device 视频设备
... ...