| | |
| | | private String key; |
| | | |
| | | public MobilePositionSubscribeHandlerTask(IRedisCatchStorage redisCatchStorage, ISIPCommanderForPlatform sipCommanderForPlatform, IVideoManagerStorage storager, String platformId, String sn, String key, SubscribeHolder subscribeInfo) { |
| | | System.out.println("MobilePositionSubscribeHandlerTask 初始化"); |
| | | this.redisCatchStorage = redisCatchStorage; |
| | | this.storager = storager; |
| | | this.platform = storager.queryParentPlatByServerGBId(platformId); |
| | |
| | | } |
| | | try { |
| | | List<DeviceChannel> deviceChannels; |
| | | if (index + parentPlatform.getCatalogGroup() < channels.size() - 1) { |
| | | if (index + parentPlatform.getCatalogGroup() < channels.size()) { |
| | | deviceChannels = channels.subList(index, index + parentPlatform.getCatalogGroup()); |
| | | }else { |
| | | deviceChannels = channels.subList(index, channels.size()); |
| | | } |
| | | |
| | | String catalogXml = getCatalogXml(deviceChannels, sn, parentPlatform, channels.size()); |
| | | // callid |
| | | CallIdHeader callIdHeader = parentPlatform.getTransport().equals("TCP") ? tcpSipProvider.getNewCallId() |
| | |
| | | return true; |
| | | } |
| | | List<DeviceChannel> channels; |
| | | if (index + parentPlatform.getCatalogGroup() < deviceChannels.size() - 1) { |
| | | if (index + parentPlatform.getCatalogGroup() < deviceChannels.size()) { |
| | | channels = deviceChannels.subList(index, index + parentPlatform.getCatalogGroup()); |
| | | }else { |
| | | channels = deviceChannels.subList(index, deviceChannels.size()); |
| | |
| | | return true; |
| | | } |
| | | List<DeviceChannel> channels; |
| | | if (index + parentPlatform.getCatalogGroup() < deviceChannels.size() - 1) { |
| | | if (index + parentPlatform.getCatalogGroup() < deviceChannels.size()) { |
| | | channels = deviceChannels.subList(index, index + parentPlatform.getCatalogGroup()); |
| | | }else { |
| | | channels = deviceChannels.subList(index, deviceChannels.size()); |
| | |
| | | deviceChannel.setParental(1); |
| | | deviceChannel.setParentId(catalog.getParentId()); |
| | | deviceChannel.setRegisterWay(1); |
| | | deviceChannel.setCivilCode(parentPlatform.getDeviceGBId().substring(0,6)); |
| | | deviceChannel.setCivilCode(parentPlatform.getAdministrativeDivision()); |
| | | deviceChannel.setModel("live"); |
| | | deviceChannel.setOwner("wvp-pro"); |
| | | deviceChannel.setSecrecy("0"); |
| | |
| | | deviceChannel.setStatus(1); |
| | | deviceChannel.setParentId(gbStream.getCatalogId()); |
| | | deviceChannel.setRegisterWay(1); |
| | | deviceChannel.setCivilCode(parentPlatform.getDeviceGBId().substring(0,6)); |
| | | deviceChannel.setCivilCode(parentPlatform.getAdministrativeDivision()); |
| | | deviceChannel.setModel("live"); |
| | | deviceChannel.setOwner("wvp-pro"); |
| | | deviceChannel.setParental(0); |
| | |
| | | deviceChannel.setParental(1); |
| | | deviceChannel.setParentId(catalog.getParentId()); |
| | | deviceChannel.setRegisterWay(1); |
| | | deviceChannel.setCivilCode(parentPlatform.getDeviceGBId().substring(0,6)); |
| | | deviceChannel.setCivilCode(parentPlatform.getAdministrativeDivision()); |
| | | deviceChannel.setModel("live"); |
| | | deviceChannel.setOwner("wvp-pro"); |
| | | deviceChannel.setSecrecy("0"); |
| | |
| | | deviceChannel.setStatus(1); |
| | | deviceChannel.setParentId(gbStream.getCatalogId()); |
| | | deviceChannel.setRegisterWay(1); |
| | | deviceChannel.setCivilCode(parentPlatform.getDeviceGBId().substring(0,6)); |
| | | deviceChannel.setCivilCode(parentPlatform.getAdministrativeDivision()); |
| | | deviceChannel.setModel("live"); |
| | | deviceChannel.setOwner("wvp-pro"); |
| | | deviceChannel.setParental(0); |
| | |
| | | continue; |
| | | } |
| | | streamPushItemForPlatform.setPlatformId(platFormInfoArray[0]); |
| | | if (platFormInfoArray[0].equals("34020000002110000001")) { |
| | | System.out.println(111); |
| | | } |
| | | List<GbStream> gbStreamList = platformForEvent.get(platFormInfoArray[0]); |
| | | if (gbStreamList == null) { |
| | | gbStreamList = new ArrayList<>(); |
| | |
| | | parentPlatform.setCatalogGroup(1); |
| | | } |
| | | if (parentPlatform.getAdministrativeDivision() == null) { |
| | | parentPlatform.setAdministrativeDivision(parentPlatform.getDeviceGBId().substring(0,6)); |
| | | parentPlatform.setAdministrativeDivision(parentPlatform.getAdministrativeDivision()); |
| | | } |
| | | ParentPlatformCatch parentPlatformCatch = redisCatchStorage.queryPlatformCatchInfo(parentPlatform.getServerGBId()); // .getDeviceGBId()); |
| | | if (parentPlatform.getId() == null ) { |
| | |
| | | deviceChannel.setParentId(catalog.getParentId()); |
| | | deviceChannel.setRegisterWay(1); |
| | | // 行政区划应该是Domain的前八位 |
| | | deviceChannel.setCivilCode(parentPlatByServerGBId.getDeviceGBId().substring(0,6)); |
| | | deviceChannel.setCivilCode(parentPlatByServerGBId.getAdministrativeDivision()); |
| | | deviceChannel.setModel("live"); |
| | | deviceChannel.setOwner("wvp-pro"); |
| | | deviceChannel.setSecrecy("0"); |
| | |
| | | <el-form-item label="SIP认证用户名" prop="username"> |
| | | <el-input v-model="platform.username"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="行政区划" prop="administrativeDivision"> |
| | | <el-input v-model="platform.administrativeDivision" clearable></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="SIP认证密码" prop="password"> |
| | | <el-input v-model="platform.password" ></el-input> |
| | | </el-form-item> |
| | |
| | | shareAllLiveStream: false, |
| | | startOfflinePush: false, |
| | | catalogGroup: 1, |
| | | administrativeDivision: null, |
| | | }, |
| | | rules: { |
| | | name: [{ required: true, message: "请输入平台名称", trigger: "blur" }], |
| | |
| | | that.platform.devicePort = res.data.devicePort; |
| | | that.platform.username = res.data.username; |
| | | that.platform.password = res.data.password; |
| | | that.platform.administrativeDivision = res.data.username.substr(0, 6); |
| | | }).catch(function (error) { |
| | | console.log(error); |
| | | }); |
| | |
| | | this.platform.catalogId = platform.catalogId; |
| | | this.platform.startOfflinePush = platform.startOfflinePush; |
| | | this.platform.catalogGroup = platform.catalogGroup; |
| | | this.platform.administrativeDivision = platform.administrativeDivision; |
| | | this.onSubmit_text = "保存"; |
| | | this.saveUrl = "/api/platform/save"; |
| | | } |
| | |
| | | deviceGBIdChange: function () { |
| | | |
| | | this.platform.username = this.platform.deviceGBId ; |
| | | if (this.platform.administrativeDivision == null) { |
| | | this.platform.administrativeDivision = this.platform.deviceGBId.substr(0, 6); |
| | | } |
| | | |
| | | }, |
| | | onSubmit: function () { |
| | | var that = this; |
| | |
| | | rtcp: false, |
| | | name: null, |
| | | serverGBId: null, |
| | | administrativeDivision: null, |
| | | serverGBDomain: null, |
| | | serverIP: null, |
| | | serverPort: null, |