采用MESSAGE方法的消息体携带;
MESSAGE消息头Content-type头域为Content-type:Application/MANSCDP+xml;
请求命令消息体采用XML封装;
报警事件通知命令包括:
设备收到MESSAGE消息后,应立即返回200 OK应答,应答命令中无消息体;
采用MESSAGE方法的消息体携带;
MESSAGE消息头Content-type头域为Content-type:Application/MANSCDP+xml;
请求命令消息体采用XML封装;
报警事件通知应答命令应包括:
// 省略头
<Notify>
<CmdType>AlarmCmdType>
<SN>2SN>
<DeviceID>xxxDeviceID>
<AlarmPriority>1AlarmPriority>
<AlarmMethod>5AlarmMethod>
<AlarmTime>2023-10-20T09:19:12AlarmTime>
<AlarmDescription>视频动检AlarmDescription>
<AlarmInfo>11AlarmInfo>
<Info>
<AlarmType>2AlarmType>
<AlarmTypeParam>
<EventType>1EventType>
AlarmTypeParam>
Info>
Notify>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.111:5060;rport=5060;received=192.168.0.111;branch=xxx
Call-ID: xxx
From: <sip:xxx@100.18.141.85>;tag=xxx
To: <sip:xxx@100.18.141.86>;tag=xxx
CSeq: 2 MESSAGE
Content-Length: 0
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.111:5060;rport=5060;received=192.168.0.111;branch=xxx
Call-ID: xxx
From: <sip:xxx@192.168.0.111>;tag=xxx
To: <sip:xxx@192.168.0.107>;tag=xxx
CSeq: 2 MESSAGE
Content-Type: application/MANSCDP+xml
Content-Length: 160
<Response>
<CmdType>AlarmCmdType>
<SN>2SN>
<DeviceID>xxxDeviceID>
<Result>OKResult>
Response>