28181平台对接接口详解_第1页
28181平台对接接口详解_第2页
28181平台对接接口详解_第3页
28181平台对接接口详解_第4页
28181平台对接接口详解_第5页
已阅读5页,还剩9页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、OUHUAWEI文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第1页,共14页28181平台对接接口详解1信令接口1.1平台注册下级平台主动向上级平台注册;注册鉴权信息(用户名和密码)由上级提供;举例说明:下级- 上级REGISTER sip: 62010000002000000001 2:7100 SIP/2.0Call-ID: C82dee890ea56d9d332fe4a5dbd2772c1CSeq: 1 REGISTERFrom: ;tag=5923_661_2647061To: Max-Forwards: 70Contac

2、t: Expires: 3600Via: SIP/2.0/UDP 1:5080;branch=z9hG4bK2647061_661_55795848069639126081Content-Length: 0上级- 下级SIP/2.0 401 UnauthorizedVia: SIP/2.0/UDP 1:5080;branch=z9hG4bK2647061_661_55795848069639126081From: ;tag=5923_661_2647061To: ;tag=316765889Call-ID: c82dee890ea56d9d332fe4a

3、5dbd2772c1CSeq: 1 REGISTERWWW-Authenticate: Digest realm=1234, nonce=7104983f5477dd30a65167b28553df65”,opaque=f10efb1af3e8a362bcda7465284073ce”, algorithm=MD5User-Agent: HikvisionExpires: 3600Content-Length: 0下级- 上级REGISTER sip:62010000002000000002:7100 SIP/2.0Call-ID: c82dee8

4、90ea56d9d332fe4a5dbd2772c1CSeq: 2 REGISTERFrom: ;tag=5923_661_2647061To: Max-Forwards: 70应AV3I文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第2页,共14页Contact: Via: SIP/2.0/UDP 1:5080;branch=z9hG4bK2647061_661_19459966820285136301Authorization: Digestusername= admin ,realm=1234,nonce=7104983f5477

5、dd30a65167b28553df65,uri=sip:62010000002000000002:7100, response ceb3a346523335fb0c6d66d24a7e77b5,algorithm=MD5,opaque=f10efb1af3e8a362bcda7465284073ceExpires: 3600Content-Length: 0上级- 下级SIP/2.0 200 OKVia: SIP/2.0/UDP 1:5080;branch=z9hG4bK2647061_661_19459966820285136301From:

6、;tag=5923_661_2647061To: ;tag=300030239Call-ID: c82dee890ea56d9d332fe4a5dbd2772c1CSeq: 2 REGISTERContact: User-Agent: HikvisionDate: 2013-07-27T14:45:39Content-Length: 01.2平台心跳保活下级平台定期向上级平台发心跳消息;定期时间可配置,上下级配置一致;上级平台连续三次未收到下级心跳消息,则认为下级平台离线;下级平台连续三次未收到心跳响应,则认为上级平台离线;举例说明:下级- 上级MESSAGE sip:62

7、010000002000000002:7100 SIP/2.0Call-ID: 69c20964c5c9a8f0cc6cc5a7381423d53CSeq: 1 MESSAGEFrom: ;tag=0673_661_2850021To: Max-Forwards: 70Content-Type: application/XmlVia: SIP/2.0/UDP 3:5080;branch=z9hG4bK2850021_661_35032844903563514200Content-Length: 138Keepalive应AV3I

8、文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第3页,共14页43 62010201002000000001 OK上级- 下级SIP/2.0 200 OKVia: SIP/2.0/UDP 3:5080;branch=z9hG4bK2850021_661_35032844903563514200From: ;tag=0673_661_2850021To: ;tag=1421372822Call-ID: 69c20964c5c9a8f0cc6cc5a7381423d53CSeq: 1 MESSAGEContent-Length: 01.3平

9、台设备共享下级平台将设备共享给上级平台,共享关系临时保存在本地数据库;下级平台收到上级平台的目录查询消息时,返回共享给该上级平台的所有共享设备信息;上级平台收到目录查询响应结果后,根据设备编码或自定义方式给设备建立目录;上级平台最好支持定期查询目录和手动查询目录功能,以便及时获取到下级平台新共享的设备;举例说明上级- 下级MESSAGE sip:62010201002000000003:5080 SIP/2.0Via: SIP/2.0/UDP 6:7100;rport;branch=z9hG4bK3420267366From: ;tag=5004853

10、00To: Call-ID: 124958176CSeq: 20 MESSAGEContent-Type: Application/MANSCDP+xmlMax-Forwards: 70User-Agent: HikvisionContent-Length:127Catalog 8903 OUHUAWEI文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第4页,共14页 62010201002000000001下级- 上级SIP/2.0 200 OKTo: ;tag=6840_661_3935882Via: SIP/2.0/UDP 6:7100;rport=7

11、100;branch=z9hG4bK3420267366;received=2CSeq: 20 MESSAGECall-ID: 124958176From: ;tag=500485300Content-Length: 0下级- 上级MESSAGE sip:62010000002000000002:7100 SIP/2.0Call-ID: 3c2375ee902cdef0c10aa9fe2001e4f93CSeq: 1 MESSAGEFrom: ;tag=7373_661_6058761To: Max-Forwards: 70

12、Content-Type: application/MANSCDP+XMLVia: SIP/2.0/UDP 3:5080;branch=z9hG4bK6058761_661_61989619576009343309Content-Length: 746Catalog 890362010201002000000001262010401001310004766共享镜头01hik116201020100200000000110114006201020100200000000110文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第5页,共14页00.0000000.

13、000000ON上级- 下级SIP/2.0 200 OKVia: SIP/2.0/UDP 3:5080;branch=z9hG4bK6058761_661_61989619576009343309From: ;tag=7373_661_6058761To: ;tag=3437297396Call-ID: 3c2375ee902cdef0c10aa9fe2001e4f93CSeq: 1 MESSAGEUser-Agent: HikvisionContent-Length: 0下级- 上级MESSAGE sip:6201000000200000000110.

14、130.140.82:7100 SIP/2.0Call-ID: 7e4db4fa734be13c979511f6a8e84df63CSeq: 1 MESSAGEFrom: ;tag=5183_661_6342350To: Max-Forwards: 70Content-Type: application/MANSCDP+XMLVia: SIP/2.0/UDP 3:5080;branch=z9hG4bK6342350_661_77897377155966919994Content-Length: 749Catalog 8903620102010020000

15、00001262010501001310005076共享镜头02hik1162010201002000000001文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第6页,共14页1011400620102010020000000011000.0000000.000000ON上级- 下级SIP/2.0 200 OKVia: SIP/2.0/UDP 3:5080;branch=z9hG4bK6342350_661_77897377155966919994From: ;tag=5183_661_6342350To: ;tag=3651745157Call-ID:

16、7e4db4fa734be13c979511f6a8e84df63CSeq: 1 MESSAGEUser-Agent: HikvisionContent-Length: 0备注:上级平台收到下级平台目录查询响应消息后,根据SumNumSumNum 段确定共享设备数量,并累计DeviceListDeviceList 的 ItemItem 数量,当累计数量和 SumNumSumNum 段值相等时,则说明查询结束。1.4共享设备状态变更通知下级平台共享设备状态变更时通知给上级平台;举例说明:下级- 上级NOTIFY sip:6201000000200000000110.130.1

17、40.82:7100 SIP/2.0Call-ID: cd0cba2fc6dc8baa82738ffdf4f13add3CSeq: 1 NOTIFYFrom: ;tag=7373_661_6058761To: Max-Forwards: 70Content-Type: application/MANSCDP+XML文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第7页,共14页Via: SIP/2.0/UDP 3:5080;branch=z9hG4bK6058761_661_61989619576009343309Content-Leng

18、th: 747Catalog362010201002000000001162010401001310004766共享镜头01hik11620102010020000000011011400620102010020000000011000.0000000.000000OFF 上级- 下级SIP/2.0 200 OKVia: SIP/2.0/UDP 3:5080;branch=z9hG4bK6058761_661_61989619576009343309From: ;tag=7373_661_6058761To: ;tag=3437297396Call-ID: cd0cba2f

19、c6dc8baa82738ffdf4f13add3CSeq: 1 NOTIFYUser-Agent: HikvisionContent-Type: application/MANSCDP+XMLContent-Length:171文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第8页,共14页Catalog362010201002000000001OK1.5实时视频上级平台请求下级共享镜头视频;举例说明:上级- 下级INVITE sip: 620102010013100000331:5080 SIP/2.0Via: SIP/2.0/UDP

20、 2:7100;rport;branch=z9hG4bK1642482264From: ;tag=3983823828To: Call-ID: 2081113375CSeq: 20 INVITEContact: Content-Type: Application/SDPMax-Forwards: 70User-Agent: HikvisionSubject: 62010201001310000033:0,62010000002000000001:0Content-Length:220v=0o=62010201001310000033 0 0 IN IP4 10.130.

21、140.82s=Playc=IN IP4 2t=0 0m=video 5400 RTP/AVP 96 97 98a=rtpmap: 96 PS/90000a=rtpmap:97 MPEG4/90000a=rtpmap:98 H264/90000a=recvonlyy=0999999999下级- 上级SIP/2.0 100 TryingTo: Via: SIP/2.0/UDP2:7100;rport=7100;branch=z9hG4bK1642482264;received=2文档名称文档密级2015-9-23华为保密信息

22、,未经授权禁止扩散第9页,共14页CSeq: 20 INVITECall-ID: 2081113375From: ;tag=3983823828Content-Length: 0下级- 上级SIP/2.0 200 OKTo: ;tag=3222_661_8389915Via: SIP/2.0/UDP2:7100;rport=7100;branch=z9hG4bK1642482264;received=2CSeq: 20 INVITECall-ID: 2081113375From: ;tag=3983823828Contact: Content-T

23、ype: application/sdpContent-Length: 277v=0o=huawei 1375083193016081 0 IN IP4 1s=Playc=IN IP4 1t=0 0m=video 6016 RTP/AVP 96a=rtpmap:96 PS/90000a=sendonlym=audio 6018 RTP/AVP 100a=rtpmap:100 G711Ua=sendonlya=username:admina=password:123456y=0999999999f=v/2/1/0/1/0a/上级- 下级ACK sip:10

24、.129.4.21:5080 SIP/2.0Via: SIP/2.0/UDP 2:7100;rport;branch=z9hG4bK825701276From: ;tag=3983823828To: ;tag=3222_661_8389915Call-ID: 2081113375CSeq: 20 ACKContact: Max-Forwards: 70User-Agent: HikvisionContent-Length: 0文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第10页,共14页上级- 下级BYE sip:1:5080 S

25、IP/2.0Via: SIP/2.0/UDP 2:7100;rport;branch=z9hG4bK825701276From: ;tag=3983823828To: ;tag=3222_661_8389915Call-ID: 2081113375CSeq: 21 BYEContact: Max-Forwards: 70User-Agent: HikvisionContent-Length: 01.6云台控制上级平台向下级平台发送云台控制请求;举例说明:上级- 下级MESSAGE sip:620102010013100000331:5080 SIP/

26、2.0Via: SIP/2.0/UDP 2:7100;rport;branch=z9hG4bK2582872259From: ;tag=3773325418To: Call-ID: 1813198482CSeq: 20 MESSAGEContent-Type: Application/MANSCDP+xmlMax-Forwards: 70User-Agent: HikvisionContent-Length:298DeviceControl8HUAWEI文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第11页,共14页 62010201001310000

27、033 a50f4d0000000001 1500000下级- 上级SIP/2.0 200 OKTo: ;tag=5541_661_3619007Via: SIP/2.0/UDP2:7100;rport=7100;branch=z9hG4bK2582872259;received=2CSeq: 20 MESSAGECall-ID: 1813198482From: ;tag=3773325418Content-Length: 01.7录像查询上级平台向下级平台查询录像请求;举例说明:上级- 下级MESSAGE sip:620102010020000

28、00003:5080 SIP/2.0Via: SIP/2.0/UDP 6:7100;rport;branch=z9hG4bK442669892From: ;tag=2630907596To: Call-ID: 3317287086CSeq: 20 MESSAGEContent-Type: Application/MANSCDP+xmlMax-Forwards: 70User-Agent: HikvisionContent-Length:258 Recordinfo 1894 62010201001310003793 2013-11-07T00:00:0

29、0 OUHUAWEI文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第12页,共14页2013-11-07T23:59:59 all 1下级- 上级SIP/2.0 200 OKTo: ;tag=2792_661_3882029Via: SIP/2.0/UDP 6:7100;rport=7100;branch=z9hG4bK442669892;received=2CSeq: 20 MESSAGECall-ID: 3317287086From: ;tag=2630907596Content-Length: 0下级- 上级MESSAGE s

30、ip:62010000002000000002:7100 SIP/2.0Call-ID: 8330948e40f07059c8cdccdc02d5aefd3CSeq: 1 MESSAGEFrom: ;tag=3548_661_3776709To: Max-Forwards: 70Content-Type: application/MANSCDP+XMLContent-Encoding: UTF-8Via: SIP/2.0/UDP 3:5080;branch=z9hG4bK3776709_661_96971908661700620966Content-Length: 566 Recordinfo 1894 62010201001310003793共享镜头01 2 62010201001310003793共享镜头01 2013-11-06T23:17:32 2013-11-07T00:02:48 timeHWPLATRD-931200007270101-VCURD-ch01_00000000029000000 OUHUAWEI文档名称文档密级2015-9-23华为保密信息,未经授权禁止扩散第13页,共14页上级- 下级SIP/2.0 200 OK

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论