临时提交
This commit is contained in:
@@ -342,4 +342,18 @@ public class CommonGBChannel {
|
||||
return channel;
|
||||
}
|
||||
|
||||
public static CommonGBChannel build(Platform platform) {
|
||||
CommonGBChannel commonGBChannel = new CommonGBChannel();
|
||||
commonGBChannel.setGbDeviceId(platform.getDeviceGBId());
|
||||
commonGBChannel.setGbName(platform.getName());
|
||||
commonGBChannel.setGbManufacturer(platform.getManufacturer());
|
||||
commonGBChannel.setGbModel(platform.getModel());
|
||||
commonGBChannel.setGbCivilCode(platform.getCivilCode());
|
||||
commonGBChannel.setGbAddress(platform.getAddress());
|
||||
commonGBChannel.setGbRegisterWay(platform.getRegisterWay());
|
||||
commonGBChannel.setGbSecrecy(platform.getSecrecy());
|
||||
commonGBChannel.setGbStatus(platform.getStatus());
|
||||
return commonGBChannel;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
package com.genersoft.iot.vmp.gb28181.bean;
|
||||
|
||||
public class ParentPlatformCatch {
|
||||
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 心跳未回复次数
|
||||
*/
|
||||
private int keepAliveReply;
|
||||
|
||||
// 注册未回复次数
|
||||
private int registerAliveReply;
|
||||
|
||||
private String callId;
|
||||
|
||||
private ParentPlatform parentPlatform;
|
||||
|
||||
private SipTransactionInfo sipTransactionInfo;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getKeepAliveReply() {
|
||||
return keepAliveReply;
|
||||
}
|
||||
|
||||
public void setKeepAliveReply(int keepAliveReply) {
|
||||
this.keepAliveReply = keepAliveReply;
|
||||
}
|
||||
|
||||
public int getRegisterAliveReply() {
|
||||
return registerAliveReply;
|
||||
}
|
||||
|
||||
public void setRegisterAliveReply(int registerAliveReply) {
|
||||
this.registerAliveReply = registerAliveReply;
|
||||
}
|
||||
|
||||
public ParentPlatform getParentPlatform() {
|
||||
return parentPlatform;
|
||||
}
|
||||
|
||||
public void setParentPlatform(ParentPlatform parentPlatform) {
|
||||
this.parentPlatform = parentPlatform;
|
||||
}
|
||||
|
||||
public String getCallId() {
|
||||
return callId;
|
||||
}
|
||||
|
||||
public void setCallId(String callId) {
|
||||
this.callId = callId;
|
||||
}
|
||||
|
||||
public SipTransactionInfo getSipTransactionInfo() {
|
||||
return sipTransactionInfo;
|
||||
}
|
||||
|
||||
public void setSipTransactionInfo(SipTransactionInfo sipTransactionInfo) {
|
||||
this.sipTransactionInfo = sipTransactionInfo;
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ import lombok.Data;
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "平台信息")
|
||||
public class ParentPlatform {
|
||||
public class Platform {
|
||||
|
||||
@Schema(description = "ID(数据库中)")
|
||||
private Integer id;
|
||||
@@ -70,9 +70,6 @@ public class ParentPlatform {
|
||||
@Schema(description = "在线状态")
|
||||
private int channelCount;
|
||||
|
||||
@Schema(description = "默认目录Id,自动添加的通道多放在这个目录下")
|
||||
private String catalogId;
|
||||
|
||||
@Schema(description = "已被订阅目录信息")
|
||||
private boolean catalogSubscribe;
|
||||
|
||||
@@ -82,9 +79,6 @@ public class ParentPlatform {
|
||||
@Schema(description = "已被订阅移动位置信息")
|
||||
private boolean mobilePositionSubscribe;
|
||||
|
||||
@Schema(description = "点播未推流的设备时是否使用redis通知拉起")
|
||||
private boolean startOfflinePush;
|
||||
|
||||
@Schema(description = "目录分组-每次向上级发送通道信息时单个包携带的通道数量,取值1,2,4,8")
|
||||
private int catalogGroup;
|
||||
|
||||
@@ -97,12 +91,46 @@ public class ParentPlatform {
|
||||
@Schema(description = "是否作为消息通道")
|
||||
private boolean asMessageChannel;
|
||||
|
||||
@Schema(description = "点播回复200OK使用次IP")
|
||||
@Schema(description = "点播回复200OK使用的IP")
|
||||
private String sendStreamIp;
|
||||
|
||||
@Schema(description = "是否使用自定义业务分组")
|
||||
private Boolean customCatalog;
|
||||
private Boolean customGroup;
|
||||
|
||||
@Schema(description = "是否自动推送通道变化")
|
||||
private Boolean autoPushChannel;
|
||||
|
||||
@Schema(description = "目录信息包含平台信息")
|
||||
private Boolean catalogWithPlatform;
|
||||
|
||||
@Schema(description = "目录信息包含分组信息")
|
||||
private Boolean catalogWithGroup;
|
||||
|
||||
@Schema(description = "目录信息包含行政区划")
|
||||
private Boolean catalogWithRegion;
|
||||
|
||||
@Schema(description = "行政区划")
|
||||
private String civilCode;
|
||||
|
||||
@Schema(description = "平台厂商")
|
||||
private String manufacturer;
|
||||
|
||||
@Schema(description = "平台型号")
|
||||
private String model;
|
||||
|
||||
@Schema(description = "平台安装地址")
|
||||
private String address;
|
||||
|
||||
@Schema(description = "注册方式(必选)缺省为1; " +
|
||||
"1-符合IETF RFC 3261标准的认证注册模式;" +
|
||||
"2-基于口令的双向认证注册模式;" +
|
||||
"3-基于数字证书的双向认证注册模式(高安全级别要求);" +
|
||||
"4-基于数字证书的单向认证注册模式(高安全级别要求)")
|
||||
private int registerWay = 1;
|
||||
|
||||
@Schema(description = "保密属性(必选)缺省为0;0-不涉密,1-涉密")
|
||||
private int secrecy = 0;
|
||||
|
||||
@Schema(description = "在线状态")
|
||||
private String Status = "ON";
|
||||
}
|
||||
24
src/main/java/com/genersoft/iot/vmp/gb28181/bean/PlatformCatch.java
Executable file
24
src/main/java/com/genersoft/iot/vmp/gb28181/bean/PlatformCatch.java
Executable file
@@ -0,0 +1,24 @@
|
||||
package com.genersoft.iot.vmp.gb28181.bean;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PlatformCatch {
|
||||
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 心跳未回复次数
|
||||
*/
|
||||
private int keepAliveReply;
|
||||
|
||||
// 注册未回复次数
|
||||
private int registerAliveReply;
|
||||
|
||||
private String callId;
|
||||
|
||||
private Platform parentPlatform;
|
||||
|
||||
private SipTransactionInfo sipTransactionInfo;
|
||||
|
||||
}
|
||||
@@ -7,7 +7,7 @@ import javax.sip.RequestEvent;
|
||||
public class SipMsgInfo {
|
||||
private RequestEvent evt;
|
||||
private Device device;
|
||||
private ParentPlatform platform;
|
||||
private Platform platform;
|
||||
private Element rootElement;
|
||||
|
||||
public SipMsgInfo(RequestEvent evt, Device device, Element rootElement) {
|
||||
@@ -16,7 +16,7 @@ public class SipMsgInfo {
|
||||
this.rootElement = rootElement;
|
||||
}
|
||||
|
||||
public SipMsgInfo(RequestEvent evt, ParentPlatform platform, Element rootElement) {
|
||||
public SipMsgInfo(RequestEvent evt, Platform platform, Element rootElement) {
|
||||
this.evt = evt;
|
||||
this.platform = platform;
|
||||
this.rootElement = rootElement;
|
||||
@@ -38,11 +38,11 @@ public class SipMsgInfo {
|
||||
this.device = device;
|
||||
}
|
||||
|
||||
public ParentPlatform getPlatform() {
|
||||
public Platform getPlatform() {
|
||||
return platform;
|
||||
}
|
||||
|
||||
public void setPlatform(ParentPlatform platform) {
|
||||
public void setPlatform(Platform platform) {
|
||||
this.platform = platform;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user