gb28181注册/保活的信令交互流程

简介:

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

    一个简单的gb28181直播预览流程:

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

  2. 发送catalog请求,查看设备信息

  3. 选择设备进行预览

注册流程:

  1. 接收register请求
  2. 回复401,要求带上用户信息
  3. 第二次接收register请求
  4. 验证通过后,回复200

具体信令:

    注:1.下面的信令,忽略了401的流程。

           2.上级域ip:192.168.30.173。域id:34020000002000000001。下级平台ip:192.168.30.228。下级平台id:34020000001110000001

    上级域接收register请求:

REGISTER sip:34020000002000000001@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.30.228:5060;rport;branch=z9hG4bK2084371513
From: ;tag=1061032626
To: 
Call-ID: 408251015
CSeq: 13 REGISTER
Contact: 
Max-Forwards: 70
User-Agent: Embedded Net DVR/NVR/DVS
Expires: 86400
Content-Length: 0

    上级域回复200:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.30.228:5060;rport=5060;received=192.168.30.228;branch=z9hG4bK2084371513
From: ;tag=1061032626
To: 
CSeq: 13 REGISTER
Call-ID: 408251015
Contact: 
User-Agent: SRS/4.0.26(Leo)
Expires: 86400
Content-Length: 0

    之后,下级域会定时发送保活请求:

MESSAGE sip:34020000002000000001@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.30.228:5060;rport;branch=z9hG4bK800985051
From: ;tag=417964224
To: 
Call-ID: 1320623185
CSeq: 20 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length:   180



Keepalive
3632
34020000001110000001
OK



    上级域回复200:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.30.228:5060;rport=5060;received=192.168.30.228;branch=z9hG4bK800985051
From: ;tag=417964224
To: 
CSeq: 20 MESSAGE
Call-ID: 1320623185
User-Agent: SRS/4.0.26(Leo)
Content-Length: 0

 

你可能感兴趣的:(sip)