技术专栏
rv1126 GB28181注册-设备信息-保活流程及信令
1.下级域上级域说明
1.上级域:采用的是第三方的试用软件,livegbs。
2.下级域:运行于rv1126上的国标客户端测试程序。
2.注册-设备信息-保活
下级域与上级域进行数据通信之前,需要先进行注册,而很多上级域,在下级域注册成功之后,一般都会主动下发获取设备信息的信令,所以这个地方将注册和获取信息的流程放到一起讨论,捎带着分析保活信令。
2.1注册流程及信令
2.1.1流程
1.下级域发送register请求
2.上级域回复401—-要求带上用户信息
3.下级域再次发送register请求
4.上级域验证通过后,回复200
2.1.2信令数据
1.下级域发送register请求
Frame 23326: 446 bytes on wire (3568 bits), 446 bytes captured (3568 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (REGISTER)
Request-Line: REGISTER sip:34020000002000000001@192.168.0.35:15060 SIP/2.0
Method: REGISTER
Request-URI: sip:34020000002000000001@192.168.0.35:15060
Request-URI User Part: 34020000002000000001
Request-URI Host Part: 192.168.0.35
Request-URI Host Port: 15060
[Resent Packet: False]
Message Header
Via: SIP/2.0/UDP 192.168.0.31:5688;rport;branch=z9hG4bK1281881627
From: <sip:37010200541180000000@192.168.0.31>;tag=1244106426
To: <sip:37010200541180000000@192.168.0.31>
Call-ID: 268198524
[Generated Call-ID: 268198524]
CSeq: 1 REGISTER
Contact: <sip:37010200541180000000@192.168.0.31>
Max-Forwards: 70
User-Agent: eXosip/4.1.0
Expires: 3600
Content-Length: 0
2.下级域接收401回复—-要求带上用户信息
Frame 23344: 524 bytes on wire (4192 bits), 524 bytes captured (4192 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (401)
Status-Line: SIP/2.0 401 Unauthorized
Message Header
Via: SIP/2.0/UDP 192.168.0.31:5688;rport=5688;received=192.168.0.31;branch=z9hG4bK1281881627
From: <sip:37010200541180000000@192.168.0.31>;tag=1244106426
To: <sip:37010200541180000000@192.168.0.31>;tag=804355653
CSeq: 1 REGISTER
Sequence Number: 1
Method: REGISTER
Call-ID: 268198524
[Generated Call-ID: 268198524]
User-Agent: EasyGBS v200511
Content-Length: 0
Contact: <sip:34020000002000000001@192.168.0.35:15060>
WWW-Authenticate: Digest realm="3402000000",qop="auth",nonce="633435782912901095a8a9ccd4e41e65"
3.下级域再次发送register请求
Frame 23429: 716 bytes on wire (5728 bits), 716 bytes captured (5728 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (REGISTER)
Request-Line: REGISTER sip:34020000002000000001@192.168.0.35:15060 SIP/2.0
Message Header
Via: SIP/2.0/UDP 192.168.0.31:5688;rport;branch=z9hG4bK1635576972
From: <sip:37010200541180000000@192.168.0.31>;tag=1244106426
To: <sip:37010200541180000000@192.168.0.31>
Call-ID: 268198524
[Generated Call-ID: 268198524]
CSeq: 3 REGISTER
Sequence Number: 3
Method: REGISTER
Contact: <sip:37010200541180000000@192.168.0.31>
[truncated]Authorization: Digest username="37010200541180000000", realm="3402000000", nonce="8da49e56d582208d62ea4ecad884d63f", uri="sip:34020000002000000001@192.168.0.35:15060", response="dca2cc832cdcb105c03bc943aae60028", algorithm=MD5
Authentication Scheme: Digest
Username: "37010200541180000000"
Realm: "3402000000"
Nonce Value: "8da49e56d582208d62ea4ecad884d63f"
Authentication URI: "sip:34020000002000000001@192.168.0.35:15060"
Digest Authentication Response: "dca2cc832cdcb105c03bc943aae60028"
Algorithm: MD5
CNonce Value: "0a4f113b"
QOP: auth
Nonce Count: 00000001
Max-Forwards: 70
User-Agent: eXosip/4.1.0
Expires: 3600
Content-Length: 0
4.上级域验证通过后,回复200
Frame 23514: 463 bytes on wire (3704 bits), 463 bytes captured (3704 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (200)
Status-Line: SIP/2.0 200 OK
Message Header
Via: SIP/2.0/UDP 192.168.0.31:5688;rport=5688;received=192.168.0.31;branch=z9hG4bK1635576972
From: <sip:37010200541180000000@192.168.0.31>;tag=1244106426
To: <sip:37010200541180000000@192.168.0.31>;tag=651355668
CSeq: 3 REGISTER
Sequence Number: 3
Method: REGISTER
Call-ID: 268198524
[Generated Call-ID: 268198524]
User-Agent: Easy SIP Server
Content-Length: 0
Date: 2021-05-11T18:30:26.260
Expires: 3600
Contact: <sip:34020000002000000001@192.168.0.35:15060>
2.2查看设备信息流程及信令
2.2.1流程
1.上级域发送catalog请求,查看设备信息
2.下级域回复200
3.下级域回复设备信息
4.上级域回复200
2.2.2信令数据
1.上级域发送catalog请求,查看设备信息
Frame 33506: 594 bytes on wire (4752 bits), 594 bytes captured (4752 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (MESSAGE)
Request-Line: MESSAGE sip:37010200541180000000@192.168.0.31:5688;transport=udp SIP/2.0
Message Header
Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK626358668
From: <sip:34020000002000000001@3402000000>;tag=941358668
To: <sip:37010200541180000000@3402000000>
Call-ID: 569358668
[Generated Call-ID: 569358668]
CSeq: 556 MESSAGE
Sequence Number: 556
Method: MESSAGE
Max-Forwards: 70
User-Agent: Easy SIP Server
Content-Length: 155
Content-Type: Application/MANSCDP+xml
Message Body
<?xml version="1.0" encoding="UTF-8"?>\n
<Query>\n
<CmdType>Catalog</CmdType>\n
<SN>89358668</SN>\n
<DeviceID>37010200541180000000</DeviceID>\n
</Query>\n
2.下级域回复200
Frame 33578: 334 bytes on wire (2672 bits), 334 bytes captured (2672 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (200)
Status-Line: SIP/2.0 200 OK
Message Header
Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK626358668
From: <sip:34020000002000000001@3402000000>;tag=941358668
To: <sip:37010200541180000000@3402000000>;tag=1739604219
Call-ID: 569358668
[Generated Call-ID: 569358668]
CSeq: 556 MESSAGE
Sequence Number: 556
Method: MESSAGE
User-Agent: eXosip/4.1.0
Content-Length: 0
3.下级域回复设备信息
Frame 33585: 822 bytes on wire (6576 bits), 822 bytes captured (6576 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (MESSAGE)
Request-Line: MESSAGE sip:34020000002000000001@192.168.0.35:15060 SIP/2.0
Message Header
Via: SIP/2.0/UDP 192.168.0.31:5688;rport;branch=z9hG4bK1566306542
From: <sip:37010200541180000000@192.168.0.31>;tag=982935768
To: <sip:34020000002000000001@192.168.0.35:15060>
Call-ID: 2133560732
[Generated Call-ID: 2133560732]
CSeq: 20 MESSAGE
Sequence Number: 20
Method: MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: eXosip/4.1.0
Content-Length: 393
Message Body
<?xml version="1.0" encoding="GB2312"?>\r\n
<Response>\r\n
<CmdType>Catalog</CmdType>\r\n
<SN>89358668</SN>\r\n
<DeviceID>37010200541180000000</DeviceID>\r\n
<SumNum>1</SumNum>\r\n
<DeviceList Num="1">\r\n
<Item>\r\n
<DeviceID>37010200541320000001</DeviceID>\r\n
<Manufacturer>ZL</Manufacturer>\r\n
<Status>ON</Status>\r\n
<Name>Channel1</Name>\r\n
<ParentID>34020000002000000001</ParentID>\r\n
</Item>\r\n
</DeviceList>\r\n
</Response>\r\n
4.上级域回复200
Frame 33775: 367 bytes on wire (2936 bits), 367 bytes captured (2936 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (200)
Status-Line: SIP/2.0 200 OK
Message Header
Via: SIP/2.0/UDP 192.168.0.31:5688;rport=5688;received=192.168.0.31;branch=z9hG4bK1566306542
From: <sip:37010200541180000000@192.168.0.31>;tag=982935768
To: <sip:34020000002000000001@192.168.0.35:15060>;tag=479358676
CSeq: 20 MESSAGE
Sequence Number: 20
Method: MESSAGE
Call-ID: 2133560732
[Generated Call-ID: 2133560732]
User-Agent: Easy SIP Server
Content-Length: 0
2.3保活流程及信令
2.3.1流程
1.下级域发送保活请求
2.上级域回复200
2.3.2信令数据
1.下级域发送保活请求
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>
2.上级域回复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
声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
红包
点赞
收藏
评论
打赏
- 分享
- 举报
评论
0个
手气红包
暂无数据
相关专栏
-
浏览量:186次2024-10-18 13:05:10
-
浏览量:353次2024-09-29 19:03:11
-
浏览量:228次2024-10-18 13:07:07
-
浏览量:6315次2020-09-07 14:18:26
-
浏览量:1120次2024-01-08 16:40:50
-
2020-09-28 11:34:56
-
浏览量:15824次2020-09-28 11:08:13
-
浏览量:7014次2020-09-21 16:29:50
-
浏览量:634次2024-01-18 17:18:51
-
浏览量:6373次2022-05-31 11:14:16
-
浏览量:986次2024-01-23 11:28:32
-
浏览量:1265次2023-11-13 17:48:03
-
浏览量:2130次2024-01-05 14:11:13
-
浏览量:1844次2024-01-05 14:15:33
-
浏览量:6942次2021-04-01 17:04:01
-
浏览量:899次2023-11-21 17:56:50
-
浏览量:1618次2023-12-29 17:51:55
-
浏览量:965次2023-08-30 18:37:06
-
浏览量:730次2024-01-02 09:46:50
置顶时间设置
结束时间
删除原因
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖
打赏作者
林
您的支持将鼓励我继续创作!
打赏金额:
¥1
¥5
¥10
¥50
¥100
支付方式:
微信支付
打赏成功!
感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
审核成功
发布时间设置
发布时间:
请选择发布时间设置
是否关联周任务-专栏模块
审核失败
失败原因
请选择失败原因
备注
请输入备注