本文主要是介绍实现国标GB/T28181流媒体服务解决方案:GB28181_2016版本-281818检测点播下载,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
GB28181点播下载注意点
在公安一所检测的时候,国标GB28181视频流媒体平台中,点播和下载有个不大不小的坑,一般点播和下载完成后,会有一个121的message通知消息,这个message并不是callid和invite一样就可以了。下面我们列举一个正确的信息,希望去检测的朋友多注意一下。
INVITE sip:11011201001310019394@1101120100 SIP/2.0
Call-ID: a068a321fb7ee0208f1591fbdeeb2856@0.0.0.0
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:11011201001310019394@11.30.80.53:7100;lr>
Via: SIP/2.0/UDP 11.254.2.50:5060;branch=z9hG4bK103e2a53-9100-45ea-ace2-32bfcbb7552b_53173353_218274686212296
Content-Length: 270v=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: a068a321fb7ee0208f1591fbdeeb2856@0.0.0.0
CSeq: 1 INVITE
User-Agent: NCG V2.6.4.457271
Content-Length: 0SIP/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: a068a321fb7ee0208f1591fbdeeb2856@0.0.0.0
CSeq: 1 INVITE
Contact: <sip:11011204002001000001@11.30.80.53:7100>
Content-Type: Application/SDP
User-Agent: NCG V2.6.4.457271
Content-Length: 204v=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:11011204002001000001@11.30.80.53:7100 SIP/2.0
Call-ID: a068a321fb7ee0208f1591fbdeeb2856@0.0.0.0
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: 0MESSAGE 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: a068a321fb7ee0208f1591fbdeeb2856@0.0.0.0
CSeq: 2 MESSAGE
Contact: <sip:11011201001310019394@11.30.80.53: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: a068a321fb7ee0208f1591fbdeeb2856@0.0.0.0
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: 0BYE sip:11011204002001000001@11.30.80.53: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: a068a321fb7ee0208f1591fbdeeb2856@0.0.0.0
Max-Forwards: 70
Via: SIP/2.0/UDP 11.254.2.50:5060;branch=z9hG4bK103e2a53-9100-45ea-ace2-32bfcbb7552b_53173353_218279714192785
Content-Length: 0SIP/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: a068a321fb7ee0208f1591fbdeeb2856@0.0.0.0
CSeq: 2 BYE
User-Agent: NCG V2.6.4.457271
Content-Length: 0
特别要注意message的from 和 to 是回复客户端200OK的from和to相反的信息(包括tag信息)
下面列举下28181检测截图:
这篇关于实现国标GB/T28181流媒体服务解决方案:GB28181_2016版本-281818检测点播下载的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!