gb28181录制回放--recordinfo信令流程

简介:

    该系列文章主要介绍,上级域对国标平台进行预览/回看等流程的信令交互。

    一个简单的gb28181录制回放流程:

  1. 接收下级域的注册请求

  2. 发送recordinfo请求,获取设备的录像信息

  3. 选择录像进行回放

recordinfo流程:

  1. 向下级域发送recordinfo请求
  2. 下级域回复200
  3. 下级域回复录像信息
  4. 上级域回复200

信令流程:

向下级域发送recordinfo请求:

注:目的域id不是,下级平台的id,是要访问的设备的id

MESSAGE sip:34020000001320000002@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.30.173:5060;rport;branch=z9hG4bK686887582
From: <sip:34020000002000000001@3402000000>;tag=734887582
To: <sip:34020000001320000002@3402000000>
Call-ID: 984887582
CSeq: 175 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: LiveGBS v200529
Content-Length: 279

<?xml version="1.0" encoding="UTF-8"?>
<Query>
    <CmdType>RecordInfo</CmdType>
    <SN>840887582</SN>
    <DeviceID>34020000001320000002</DeviceID>
    <StartTime>2020-06-02T12:00:00</StartTime>
    <EndTime>2020-06-02T15:59:00</EndTime>
    <Type>all</Type>
</Query>

下级域回复200:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.30.173:5060;rport=5060;branch=z9hG4bK686887582
From: <sip:34020000002000000001@3402000000>;tag=734887582
To: <sip:34020000001320000002@3402000000>;tag=815147343
Call-ID: 984887582
CSeq: 175 MESSAGE
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length: 0

下级域回复录像信息:

MESSAGE sip:34020000002000000001@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.30.228:5060;rport;branch=z9hG4bK242789517
From: <sip:34020000001110000001@3402000000>;tag=1702343125
To: <sip:34020000002000000001@3402000000>
Call-ID: 1189630420
CSeq: 20 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length:  2689

<?xml version="1.0" encoding="gb2312"?>
<Response>
<CmdType>RecordInfo</CmdType>
<SN>840887582</SN>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<SumNum>9</SumNum>
<RecordList Num="9">
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591069694_1591071812</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T11:48:14</StartTime>
<EndTime>2020-06-02T12:23:32</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591071812_1591073930</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T12:23:32</StartTime>
<EndTime>2020-06-02T12:58:50</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591073930_1591076048</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T12:58:50</StartTime>
<EndTime>2020-06-02T13:34:08</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591076048_1591078166</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T13:34:08</StartTime>
<EndTime>2020-06-02T14:09:26</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591078166_1591080284</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T14:09:26</StartTime>
<EndTime>2020-06-02T14:44:44</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591080284_1591081343</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T14:44:44</StartTime>
<EndTime>2020-06-02T15:02:23</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591081425_1591082484</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T15:03:45</StartTime>
<EndTime>2020-06-02T15:21:24</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591082484_1591084602</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T15:21:24</StartTime>
<EndTime>2020-06-02T15:56:42</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591084602_1591084721</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T15:56:42</StartTime>
<EndTime>2020-06-02T15:58:41</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
</RecordList>
</Response>

上级域回复200:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.30.228:5060;rport=5060;received=192.168.30.228;branch=z9hG4bK242789517
From: <sip:34020000001110000001@3402000000>;tag=1702343125
To: <sip:34020000002000000001@3402000000>;tag=405887934
CSeq: 20 MESSAGE
Call-ID: 1189630420
User-Agent: LiveGBS v200529
Content-Length: 0

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值