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: ;tag=734887582
To: 
Call-ID: 984887582
CSeq: 175 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: LiveGBS v200529
Content-Length: 279



    RecordInfo
    840887582
    34020000001320000002
    2020-06-02T12:00:00
    2020-06-02T15:59:00
    all

下级域回复200:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.30.173:5060;rport=5060;branch=z9hG4bK686887582
From: ;tag=734887582
To: ;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: ;tag=1702343125
To: 
Call-ID: 1189630420
CSeq: 20 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length:  2689



RecordInfo
840887582
34020000001320000002
Camera 01
9


34020000001320000002
Camera 01
1591069694_1591071812
Address 1
2020-06-02T11:48:14 2020-06-02T12:23:32 0 time
34020000001320000002 Camera 01 1591071812_1591073930
Address 1
2020-06-02T12:23:32 2020-06-02T12:58:50 0 time
34020000001320000002 Camera 01 1591073930_1591076048
Address 1
2020-06-02T12:58:50 2020-06-02T13:34:08 0 time
34020000001320000002 Camera 01 1591076048_1591078166
Address 1
2020-06-02T13:34:08 2020-06-02T14:09:26 0 time
34020000001320000002 Camera 01 1591078166_1591080284
Address 1
2020-06-02T14:09:26 2020-06-02T14:44:44 0 time
34020000001320000002 Camera 01 1591080284_1591081343
Address 1
2020-06-02T14:44:44 2020-06-02T15:02:23 0 time
34020000001320000002 Camera 01 1591081425_1591082484
Address 1
2020-06-02T15:03:45 2020-06-02T15:21:24 0 time
34020000001320000002 Camera 01 1591082484_1591084602
Address 1
2020-06-02T15:21:24 2020-06-02T15:56:42 0 time
34020000001320000002 Camera 01 1591084602_1591084721
Address 1
2020-06-02T15:56:42 2020-06-02T15:58:41 0 time

上级域回复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: ;tag=1702343125
To: ;tag=405887934
CSeq: 20 MESSAGE
Call-ID: 1189630420
User-Agent: LiveGBS v200529
Content-Length: 0

 

你可能感兴趣的:(sip)