提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
import com.iailab.netsdk.lib.enumeration.EM_SERVER_OPTION; |
|
5 |
import com.sun.jna.Pointer; |
|
6 |
|
7412dd
|
7 |
import static com.iailab.netsdk.lib.constant.SDKStructureFieldLenth.*; |
149dd0
|
8 |
|
H |
9 |
/** |
|
10 |
* SIP服务器信息 |
|
11 |
* |
|
12 |
* @author 47040 |
|
13 |
* @version 1.0.0 |
|
14 |
* @since Created in 2021/3/9 8:41 |
|
15 |
*/ |
|
16 |
public class NET_SIP_SERVER_INFO extends NetSDKLib.SdkStructure { |
|
17 |
|
|
18 |
/** |
|
19 |
* 单个平台接入启动选项 枚举值{@link EM_SERVER_OPTION} |
|
20 |
*/ |
|
21 |
public int emServerOption; |
|
22 |
/** |
|
23 |
* SIP服务器编号 |
|
24 |
*/ |
|
25 |
public byte[] szSipSvrId = new byte[MAX_SIP_SVR_ID_LEN]; |
|
26 |
/** |
|
27 |
* SIP域 |
|
28 |
*/ |
|
29 |
public byte[] szDomain = new byte[MAX_SIP_DOMAIN_LEN]; |
|
30 |
/** |
|
31 |
* SIP服务器 IP |
|
32 |
*/ |
|
33 |
public byte[] szSipSvrIp = new byte[MAX_SIP_SVR_IP_LEN]; |
|
34 |
/** |
|
35 |
* 设备编号 |
|
36 |
*/ |
|
37 |
public byte[] szDeviceId = new byte[MAX_SIP_SERVER_DEVICE_ID_LEN]; |
|
38 |
/** |
|
39 |
* 注册密码 |
|
40 |
*/ |
|
41 |
public byte[] szPassword = new byte[MAX_REG_PASSWORD_LEN]; |
|
42 |
/** |
|
43 |
* 本地SIP服务端口 |
|
44 |
*/ |
|
45 |
public short nLocalSipPort; |
|
46 |
/** |
|
47 |
* SIP服务器端口 |
|
48 |
*/ |
|
49 |
public short nSipSvrPort; |
|
50 |
/** |
|
51 |
* 注册有效期,单位:秒 |
|
52 |
*/ |
|
53 |
public int nSipRegExpires; |
|
54 |
/** |
|
55 |
* 注册失败后重新注册间隔,单位:秒 |
|
56 |
*/ |
|
57 |
public int nRegInterval; |
|
58 |
/** |
|
59 |
* 心跳周期,单位:秒 |
|
60 |
*/ |
|
61 |
public int nKeepAliveCircle; |
|
62 |
/** |
|
63 |
* 最大心跳超时次数 |
|
64 |
*/ |
|
65 |
public int nMaxTimeoutTimes; |
|
66 |
/** |
|
67 |
* 行政区划代码 |
|
68 |
*/ |
|
69 |
public byte[] szCivilCode = new byte[MAX_CIVIL_CODE_LEN]; |
|
70 |
/** |
|
71 |
* 接入模块识别码 |
|
72 |
*/ |
|
73 |
public byte[] szIntervideoID = new byte[MAX_INTERVIDEO_ID_LEN]; |
|
74 |
/** |
|
75 |
* 通道相关信息,由用户申请内存,大小为 sizeof(NET_CHANNEL_INFO)*nChannelInfoNum |
|
76 |
* JNA指针类型 -> {@link NET_CHANNEL_INFO} |
|
77 |
*/ |
|
78 |
public Pointer pstuChannelInfo; |
|
79 |
/** |
|
80 |
* 通道信息个数,可以根据登陆时获取的通道数为准 |
|
81 |
*/ |
|
82 |
public int nChannelInfoNum; |
|
83 |
/** |
|
84 |
* 实际返回的通道号信息个数 |
|
85 |
*/ |
|
86 |
public int nRetChannelInfoNum; |
|
87 |
/** |
|
88 |
* 报警通道相关信息,由用户申请内存,大小为 sizeof(NET_ALARM_INFO)*nAlarmInfoNum |
|
89 |
* JNA指针类型 -> {@link NET_ALARM_INFO} |
|
90 |
*/ |
|
91 |
public Pointer pstuAlarmInfo; |
|
92 |
/** |
|
93 |
* 报警信息个数,最大值为 640 |
|
94 |
*/ |
|
95 |
public int nAlarmInfoNum; |
|
96 |
/** |
|
97 |
* 实际返回的报警通道信息个数 |
|
98 |
*/ |
|
99 |
public int nRetAlarmInfoNum; |
|
100 |
/** |
|
101 |
* 音频输出通道相关信息,由用户申请内存,大小为 sizeof(NET_AUDIO_OUTPUT_CHANNEL_INFO)*nAudioOutputChnInfoNum |
|
102 |
* JNA指针类型 -> {@link NET_AUDIO_OUTPUT_CHANNEL_INFO} |
|
103 |
*/ |
|
104 |
public Pointer pstuAudioOutputChnInfo; |
|
105 |
/** |
|
106 |
* 音频输出通道相关信息个数,最大值为181 |
|
107 |
*/ |
|
108 |
public int nAudioOutputChnInfoNum; |
|
109 |
/** |
|
110 |
* 实际返回的音频输出通道信息个数 |
|
111 |
*/ |
|
112 |
public int nRetAudioOutputChnInfoNum; |
|
113 |
/** |
|
114 |
* 预留字节 |
|
115 |
*/ |
|
116 |
public byte[] byReserved = new byte[1024]; |
|
117 |
|
|
118 |
} |