GB/T28181协议EasyGBS问题解决对接大华硬盘录像机NVR时查询录像失败

EasyGBS问题解决:对接大华硬盘录像机NVR查询录像失败

我们在对接大华硬盘录像机NVR的时候查询录像失败,在EasyGBS的系统中提示query recordinfo return 400 Bad Request

分析问题

发送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>
posted on 2019-09-10 14:30  EasyNVR  阅读(1057)  评论(0编辑  收藏  举报