| | |
| | | deviceChannel.setLongitude(itemDevice.element("Longitude") == null? 0.00:Double.parseDouble(XmlUtil.getText(itemDevice,"Longitude")));
|
| | | deviceChannel.setLatitude(itemDevice.element("Latitude") == null? 0.00:Double.parseDouble(XmlUtil.getText(itemDevice,"Latitude")));
|
| | | deviceChannel.setPTZType(itemDevice.element("PTZType") == null? 0:Integer.parseInt(XmlUtil.getText(itemDevice,"PTZType")));
|
| | | deviceChannel.setHasAudio(false); // 默认含有音频为false
|
| | | storager.updateChannel(device.getDeviceId(), deviceChannel);
|
| | | }
|
| | | // 更新
|
| | |
| | | msg.setType(DeferredResultHolder.CALLBACK_CMD_CATALOG);
|
| | | msg.setData(device);
|
| | | deferredResultHolder.invokeResult(msg);
|
| | |
|
| | | // 回复200
|
| | | responseAck(evt);
|
| | | }
|
| | | } catch (DocumentException e) {
|
| | | } catch (DocumentException | SipException | InvalidArgumentException | ParseException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|