概述
简介:
该系列文章主要介绍,上级域对国标平台进行预览/回看等流程的信令交互。
一个简单的gb28181直播预览流程:
-
接收下级域的注册请求
-
发送catalog请求,查看设备信息
-
选择设备进行预览
注册流程:
- 接收register请求
- 回复401,要求带上用户信息
- 第二次接收register请求
- 验证通过后,回复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: <sip:34020000001110000001@3402000000>;tag=1061032626
To: <sip:34020000001110000001@3402000000>
Call-ID: 408251015
CSeq: 13 REGISTER
Contact: <sip:34020000001110000001@192.168.30.228:5060>
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: <sip:34020000001110000001@3402000000>;tag=1061032626
To: <sip:34020000001110000001@3402000000>
CSeq: 13 REGISTER
Call-ID: 408251015
Contact: <sip:34020000001110000001@192.168.30.228:5060>
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: <sip:34020000001110000001@3402000000>;tag=417964224
To: <sip:34020000002000000001@3402000000>
Call-ID: 1320623185
CSeq: 20 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length:
180
<?xml version="1.0" encoding="gb2312"?>
<Notify>
<CmdType>Keepalive</CmdType>
<SN>3632</SN>
<DeviceID>34020000001110000001</DeviceID>
<Status>OK</Status>
<Info>
</Info>
</Notify>
上级域回复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: <sip:34020000001110000001@3402000000>;tag=417964224
To: <sip:34020000002000000001@3402000000>
CSeq: 20 MESSAGE
Call-ID: 1320623185
User-Agent: SRS/4.0.26(Leo)
Content-Length: 0
最后
以上就是无心白猫为你收集整理的gb28181注册/保活的信令交互流程的全部内容,希望文章能够帮你解决gb28181注册/保活的信令交互流程所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复