EasyGBS查找大华设备的录像列表时失败
提出问题:
EasyGBS查找大华设备的录像列表时页面提示query recordinfo return 400 Bad Request
分析问题:
通过抓包和对比GB28181协议文档时发现发送RecordInfo消息时 xml消息中缺少Type节点
解决问题:
RecordInfo xml消息中增加一个值为all的文本元素节点Type
示例:
MESSAGE sip:34020000001320000140@192.168.99.140:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.99.120:5060;rport;branch=z9hG4bK171140128
From: <sip:34020000002000000001@3402000000>;tag=363140128
To: <sip:34020000001320000140@192.168.99.140:5060>
Call-ID: 488140128
CSeq: 11 MESSAGE
Max-Forwards: 70
Content-Length: 279
Content-Type: Application/MANSCDP+xml
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<CmdType>RecordInfo</CmdType>
<SN>717140128</SN>
<DeviceID>34020000001320000140</DeviceID>
<StartTime>2019-07-25T00:00:00</StartTime>
<EndTime>2019-07-25T06:00:00</EndTime>
<Type>all</Type>
</Query>