视频监控安防平台-GB28181_2016版本-281818检测点播下载

版权声明:本文为博主原创文章,未经博主允许不得转载。QQ/微信联系:123011785 https://blog.csdn.net/songxiao1988918/article/details/79040979

                 视频监控安防平台-GB28181_2016版本-281818检测点播下载

在公安一所检测的时候,点播和下载有个不大不小的坑,本来早都想把检测遇到的各种各样的坑列举出来,由于工作和项目上面的事情太多了,一直没找到时间去搞这个,下面我来简单说说点播和下载的坑,一般点播和下载完成后,会有一个121的message通知消息,之前我一直以为这个message只要callid和invite一样就可以了,但是想法太简单了,检测的时候居然关联了from和to的信息,包括后面的tag信息,下面列举一个正确的信息,希望去检测的朋友多注意一下。

INVITE sip:11011201001310019394@1101120100 SIP/2.0
Call-ID: [email protected]
CSeq: 1 INVITE
From: <sip:11010000002000000003@1101000000>;tag=85975625_53173353_103e2a53-9100-45ea-ace2-32bfcbb7552b
To: <sip:11011201001310019394@1101120100>
Max-Forwards: 70
Contact: "11010000002000000003" <sip:11.254.2.50:5060>
Subject: 11011201001310019394:1-4-1515477228061,11010000002000000003:1
Content-Type: application/sdp
Route: <sip:[email protected]:7100;lr>
Via: SIP/2.0/UDP 11.254.2.50:5060;branch=z9hG4bK103e2a53-9100-45ea-ace2-32bfcbb7552b_53173353_218274686212296
Content-Length: 270

v=0
o=11010000002020000003 0 0 IN IP4 11.254.2.50
s=Download
u=11011201001310019394:3
c=IN IP4 11.254.2.50
t=1515435056 1515435236
m=video 9910 RTP/AVP 96 98 97
a=recvonly
a=rtpmap:96 PS/90000
a=rtpmap:97 MPEG4/90000
a=rtpmap:98 H264/90000
a=downloadspeed:1
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 11.254.2.50:5060;branch=z9hG4bK103e2a53-9100-45ea-ace2-32bfcbb7552b_53173353_218274686212296
From: <sip:11010000002000000003@1101000000>;tag=85975625_53173353_103e2a53-9100-45ea-ace2-32bfcbb7552b
To: <sip:11011201001310019394@1101120100>
Call-ID: [email protected]
CSeq: 1 INVITE
User-Agent: NCG V2.6.4.457271
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 11.254.2.50:5060;branch=z9hG4bK103e2a53-9100-45ea-ace2-32bfcbb7552b_53173353_218274686212296
From: <sip:11010000002000000003@1101000000>;tag=85975625_53173353_103e2a53-9100-45ea-ace2-32bfcbb7552b
To: <sip:11011201001310019394@1101120100>;tag=77643965
Call-ID: [email protected]
CSeq: 1 INVITE
Contact: <sip:[email protected]:7100>
Content-Type: Application/SDP
User-Agent: NCG V2.6.4.457271
Content-Length:   204

v=0
o=11011201001310019394 0 0 IN IP4 11.254.2.50
s=Download
c=IN IP4 11.30.80.53
t=1515435056 1515435236
m=video 5134 RTP/AVP 96
a=rtpmap:96 PS/90000
a=sendonly
a=filesize:46240920
y=1100000018
ACK sip:[email protected]:7100 SIP/2.0
Call-ID: [email protected]
CSeq: 1 ACK
From: <sip:11010000002000000003@1101000000>;tag=85975625_53173353_103e2a53-9100-45ea-ace2-32bfcbb7552b
To: <sip:11011201001310019394@1101120100>;tag=77643965
Max-Forwards: 70
Via: SIP/2.0/UDP 11.254.2.50:5060;branch=z9hG4bK103e2a53-9100-45ea-ace2-32bfcbb7552b_53173353_218277296041838
Content-Length: 0

MESSAGE sip:11.254.2.50:5060 SIP/2.0
Via: SIP/2.0/UDP 11.30.80.53:7100;rport;branch=z9hG4bK547055737
From: <sip:11011201001310019394@1101120100>;tag=77643965
To: <sip:11010000002000000003@1101000000>;tag=85975625_53173353_103e2a53-9100-45ea-ace2-32bfcbb7552b
Call-ID: [email protected]
CSeq: 2 MESSAGE
Contact: <sip:[email protected]:7100>
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: NCG V2.6.4.457271
Content-Length:   164

<?xml version="1.0"?>
<Notify>
<CmdType>MediaStatus</CmdType>
<SN>10948</SN>
<DeviceID>11011201001310019394</DeviceID>
<NotifyType>121</NotifyType>
</Notify>
SIP/2.0 200 OK
CSeq: 2 MESSAGE
Call-ID: [email protected]
From: <sip:11011201001310019394@1101120100>;tag=77643965
To: <sip:11010000002000000003@1101000000>;tag=85975625_53173353_103e2a53-9100-45ea-ace2-32bfcbb7552b
Via: SIP/2.0/UDP 11.30.80.53:7100;rport=7100;branch=z9hG4bK547055737;received=11.30.80.53
Content-Length: 0

BYE sip:[email protected]:7100 SIP/2.0
CSeq: 2 BYE
From: <sip:11010000002000000003@1101000000>;tag=85975625_53173353_103e2a53-9100-45ea-ace2-32bfcbb7552b
To: <sip:11011201001310019394@1101120100>;tag=77643965
Call-ID: [email protected]
Max-Forwards: 70
Via: SIP/2.0/UDP 11.254.2.50:5060;branch=z9hG4bK103e2a53-9100-45ea-ace2-32bfcbb7552b_53173353_218279714192785
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 11.254.2.50:5060;branch=z9hG4bK103e2a53-9100-45ea-ace2-32bfcbb7552b_53173353_218279714192785
From: <sip:11010000002000000003@1101000000>;tag=85975625_53173353_103e2a53-9100-45ea-ace2-32bfcbb7552b
To: <sip:11011201001310019394@1101120100>;tag=77643965
Call-ID: [email protected]
CSeq: 2 BYE
User-Agent: NCG V2.6.4.457271
Content-Length: 0


特别要注意message的from 和 to 是回复客户端200OK的from和to相反的信息(包括tag信息)

From: <sip:11011201001310019394@1101120100>;tag=77643965
To: <sip:11010000002000000003@1101000000>;tag=85975625_53173353_103e2a53-9100-45ea-ace2-32bfcbb7552b

下面列举下28181检测截图:


猜你喜欢

转载自blog.csdn.net/songxiao1988918/article/details/79040979