All Classes and Interfaces
Class
Description
SIP命令类型: 收到ACK请求*
ACK请求响应器
处理设备告警信息
响应设备告警查询
复制类 无实际使用
SIP命令类型: 收到Bye请求
客户端发起Bye请求,结束通话
SIP命令类型: 收到Bye请求
客户端发起Bye请求,结束通话
BYE请求响应器
SIP命令类型: CANCEL请求
CANCEL响应处理器
响应设备目录查询
SIP命令类型: ACK请求
SIP命令类型: 收到Subscribe请求
响应设备配置查询
消息体类型
获取sip默认配置
完整配置参考 gov.nist.javax.sip.SipStackImpl,需要下载源码
gov/nist/javax/sip/SipStackImpl.class
sip消息的解析在 gov.nist.javax.sip.stack.UDPMessageChannel的processIncomingDataPacket 方法
"报警信息"
<?xml version="1.0" encoding="UTF-8"?>
Alarm
744523
2133
AlarmPriority
deviceAlarm.getAlarmMethod()
DateUtil.yyyy_MM_dd_HH_mm_ssToISO8601(deviceAlarm.getAlarmTime())
deviceAlarm.getAlarmDescription()
deviceAlarm.getLongitude()
deviceAlarm.getLatitude()
deviceAlarm.getAlarmType()
<?xml version="1.0" encoding="UTF-8"?>
Alarm
217408
123
12312
123
alarmMethod
alarmType
startTime
endTime
<?xml version="1.0" encoding="UTF-8"?>
DeviceConfig
150959
channelId
name
30
300
300
<?xml version="1.0" encoding="UTF-8"?>
DeviceConfig
150959
channelId
name
30
300
300
<?xml version="1.0" encoding="UTF-8"?>
ConfigDownload
340294132
34020000001320000264
OK
IP CAMERA
34020000001320000264
34020000002000000001
192.168.2.135
5060
3402000000
3600
12345678
60
3
/**
<?xml version="1.0" encoding="UTF-8"?>
DeviceControl
179173
213
ResetAlarm
123
alarmType
<?xml version="1.0" encoding="UTF-8"?>
DeviceControl
331004
1231
dragZoom.getLength()
dragZoom.getWidth()
ragZoom.getMidPointX()
dragZoom.getMidPointY()
ragZoom.getLengthX()
dragZoom.getLengthY()
<?xml version="1.0" encoding="UTF-8"?>
DeviceControl
331004
1231
dragZoom.getLength()
dragZoom.getWidth()
ragZoom.getMidPointX()
dragZoom.getMidPointY()
ragZoom.getLengthX()
dragZoom.getLengthY()
<?xml version="1.0" encoding="UTF-8"?>
DeviceControl
840481
channelId
1
resetTime
presetIndex
复制类 无实际使用
响应设备信息
toString 使用父类方法
<?xml version="1.0" encoding="UTF-8"?>
Keepalive
340917
parentPlatform.getDeviceGBId()
OK
<?xml version="1.0" encoding="UTF-8"?>
Catalog
422214
device_001
1
-
33010602011187000001
Event
<?xml version="1.0" encoding="UTF-8"?>
DeviceStatus
sn
channelId
OK
statusStr
OK
<?xml version="1.0" encoding="UTF-8"?>
Catalog
123
123
<?xml version="1.0" encoding="UTF-8"?>
RecordInfo
740143
33010602010002719420
130
-
null
null
2023-10-16T00:05:00
2023-10-16T00:10:03
0
null
6245911
/home/www/ZLMediaKit/release/linux/Debug/www/record/onvif/037a00020053fafd470f__D01_CH01_Main/2023-10-16/000500-001003.mp4
<?xml version="1.0" encoding="UTF-8"?>
RecordInfo
sn
channelId
DateUtil.yyyy_MM_dd_HH_mm_ssToISO8601(startTime)
DateUtil.yyyy_MM_dd_HH_mm_ssToISO8601(endTime)
secrecy
type
<?xml version="1.0"?>
Catalog
${SN}
${DEVICE_ID}
1
-
33010602011187000002
Camera
海康
Model
Owner
CivilCode
Block
上海市五角场合生汇
0
${DEVICE_ID}
0
1
CertNum1
0
400
2010-11-11T19:46:17
0
172.19.128.50
5060
Password1
1
Status1
171.4
34.2
<?xml version="1.0" encoding="UTF-8"?>
DeviceStatus
sn
channelId
OK
ONLINE
OK
响应设备状态查询
<?xml version="1.0" encoding="UTF-8"?>
Catalog
sn
channelId
OK
<?xml version="1.0" encoding="UTF-8"?>
Catalog
422214
device_001
1
-
33010602011187000001
Channel 1
0
ABC Inc.
1
ON
Model 123
John Doe
123456
123 Main St.
Event
Implements the HTTP digest authentication method server side functionality.
动态定时任务
事件结果
事件类型
继承这个类,自定义参数
28181 的SDP解析器
重写jain sip的SIPDate解决与国标时间格式不一致的问题
SIP命令类型: 收到Invite请求
客户端发起Invite请求, Invite Request消息实现,请求视频指令
发起INVITE响应
<?xml version="1.0" encoding="UTF-8"?>
MediaStatus
226063
12312
121
对message类型的请求单独抽象,根据cmdType进行处理
<?xml version="1.0" encoding="UTF-8"?>
MobilePosition
383451
123
gpsMsgInfo.getLng()
gpsMsgInfo.getLat()
gpsMsgInfo.getSpeed()
gpsMsgInfo.getDirection()
gpsMsgInfo.getAltitude()
国标点播操作类型
枚举类,表示不同的云台控制命令
description 发起后 Register 的响应处理器
业务逻辑直接继承该类,实现方法即可
SDP解析器
SIP命令类型: 收到info请求
SIP命令类型: 收到Notify请求
SIP命令类型: REGISTER请求
SIP信令处理类观察者
对SIP事件进行处理,包括request, response, timeout, ioException, transactionTerminated,dialogTerminated
Sip命令request创造器
处理接收IPCamera发来的SIP协议响应消息
发送SIP消息
sip事物交换信息
处理设备通道订阅消息 回复OK
SIP命令类型: 收到SUBSCRIBE响应*
ThreadPoolTask 配置类