您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 信息化管理 > 28181平台对接接口详解
......28181平台对接接口详解1信令接口1.1平台注册下级平台主动向上级平台注册;注册鉴权信息(用户名和密码)由上级提供;举例说明:下级---上级REGISTERsip:62010000002000000001@10.130.140.82:7100SIP/2.0Call-ID:c82dee890ea56d9d332fe4a5dbd2772c@10.129.4.21CSeq:1REGISTERFrom:sip:62010201002000000001@10.129.4.21:5080;tag=5923_661_2647061To:sip:62010201002000000001@10.129.4.21:5080Max-Forwards:70Contact:sip:62010201002000000001@10.129.4.21:5080Expires:3600Via:SIP/2.0/UDP10.129.4.21:5080;branch=z9hG4bK2647061_661_55795848069639126081Content-Length:0上级---下级SIP/2.0401UnauthorizedVia:SIP/2.0/UDP10.129.4.21:5080;branch=z9hG4bK2647061_661_55795848069639126081From:sip:62010201002000000001@10.129.4.21:5080;tag=5923_661_2647061To:sip:62010201002000000001@10.129.4.21:5080;tag=316765889Call-ID:c82dee890ea56d9d332fe4a5dbd2772c@10.129.4.21CSeq:1REGISTER=1234,nonce=7104983f5477dd30a65167b28553df65,opaque=f10efb1af3e8a362bcda7465284073ce,algorithm=MD5User-Agent:HikvisionExpires:3600Content-Length:0下级---上级REGISTERsip:62010000002000000001@10.130.140.82:7100SIP/2.0Call-ID:c82dee890ea56d9d332fe4a5dbd2772c@10.129.4.21CSeq:2REGISTERFrom:sip:62010201002000000001@10.129.4.21:5080;tag=5923_661_2647061To:sip:62010201002000000001@10.129.4.21:5080Max-Forwards:70......Contact:sip:62010201002000000001@10.129.4.21:5080Via:SIP/2.0/UDP10.129.4.21:5080;branch=z9hG4bK2647061_661_19459966820285136301Authorization:Digestusername=admin,realm=1234,nonce=7104983f5477dd30a65167b28553df65,uri=sip:62010000002000000001@10.130.140.82:7100,response=ceb3a346523335fb0c6d66d24a7e77b5,algorithm=MD5,opaque=f10efb1af3e8a362bcda7465284073ceExpires:3600Content-Length:0上级---下级SIP/2.0200OKVia:SIP/2.0/UDP10.129.4.21:5080;branch=z9hG4bK2647061_661_19459966820285136301From:sip:62010201002000000001@10.129.4.21:5080;tag=5923_661_2647061To:sip:62010201002000000001@10.129.4.21:5080;tag=300030239Call-ID:c82dee890ea56d9d332fe4a5dbd2772c@10.129.4.21CSeq:2REGISTERContact:sip:62010201002000000001@10.129.4.21:5080User-Agent:HikvisionDate:2013-07-27T14:45:39Content-Length:01.2平台心跳保活下级平台定期向上级平台发心跳消息;定期时间可配置,上下级配置一致;上级平台连续三次未收到下级心跳消息,则认为下级平台离线;下级平台连续三次未收到心跳响应,则认为上级平台离线;举例说明:下级---上级MESSAGEsip:62010000002000000001@10.130.140.82:7100SIP/2.0Call-ID:69c20964c5c9a8f0cc6cc5a7381423d5@10.129.4.13CSeq:1MESSAGEFrom:sip:62010201002000000001@10.129.4.13;tag=0673_661_2850021To:sip:62010000002000000001@10.130.140.82Max-Forwards:70Content-Type:application/XmlVia:SIP/2.0/UDP10.129.4.13:5080;branch=z9hG4bK2850021_661_35032844903563514200Content-Length:138?xmlversion=1.0?NotifyCmdTypeKeepalive/CmdTypeSN43/SN......DeviceID62010201002000000001/DeviceIDStatusOK/Status/Notify上级---下级SIP/2.0200OKVia:SIP/2.0/UDP10.129.4.13:5080;branch=z9hG4bK2850021_661_35032844903563514200From:sip:62010201002000000001@10.129.4.13;tag=0673_661_2850021To:sip:62010000002000000001@10.130.140.82;tag=1421372822Call-ID:69c20964c5c9a8f0cc6cc5a7381423d5@10.129.4.13CSeq:1MESSAGEContent-Length:01.3平台设备共享下级平台将设备共享给上级平台,共享关系临时保存在本地数据库;下级平台收到上级平台的目录查询消息时,返回共享给该上级平台的所有共享设备信息;上级平台收到目录查询响应结果后,根据设备编码或自定义方式给设备建立目录;上级平台最好支持定期查询目录和手动查询目录功能,以便及时获取到下级平台新共享的设备;举例说明上级---下级MESSAGEsip:62010201002000000001@10.129.4.13:5080SIP/2.0Via:SIP/2.0/UDP172.16.3.26:7100;rport;branch=z9hG4bK3420267366From:sip:62010000002000000001@10.183.21.20:7100;tag=500485300To:sip:62010201002000000001@10.129.4.13:5080Call-ID:124958176CSeq:20MESSAGEContent-Type:Application/MANSCDP+xmlMax-Forwards:70User-Agent:HikvisionContent-Length:127?xmlversion=1.0?QueryCmdTypeCatalog/CmdTypeSN8903/SNDeviceID62010201002000000001/DeviceID/Query下级---上级......SIP/2.0200OKTo:sip:62010201002000000001@10.129.4.13:5080;tag=6840_661_3935882Via:SIP/2.0/UDP172.16.3.26:7100;rport=7100;branch=z9hG4bK3420267366;received=10.130.140.82CSeq:20MESSAGECall-ID:124958176From:sip:62010000002000000001@10.183.21.20:7100;tag=500485300Content-Length:0下级---上级MESSAGEsip:62010000002000000001@10.130.140.82:7100SIP/2.0Call-ID:3c2375ee902cdef0c10aa9fe2001e4f9@10.129.4.13CSeq:1MESSAGEFrom:sip:62010201002000000001@10.129.4.13;tag=7373_661_6058761To:sip:62010000002000000001@10.130.140.82Max-Forwards:70Content-Type:application/MANSCDP+XMLVia:SIP/2.0/UDP10.129.4.13:5080;branch=z9hG4bK6058761_661_61989619576009343309Content-Length:746?xmlversion=1.0encoding=UTF-8?ResponseCmdTypeCatalog/CmdTypeSN8903/SNDeviceID62010201002000000001/DeviceIDSumNum2/SumNumDeviceListNum=1ItemDeviceID62010401001310004766/DeviceIDName共享镜头01/NameManufacturerhik/ManufacturerOwner1/OwnerModel1/ModelCivilCode62010201002000000001/CivilCodeAddress1/AddressParental0/ParentalCertNum1/CertNumCertifiable1/CertifiableErrCode400/ErrCodeParentID62010201002000000001/ParentIDRegisterWay1/RegisterWaySecrecy0/SecrecyIPAddress/IPAddressPort0/PortLongitude0.000000/Longitude......Latitude0.000000/LatitudeStatusON/Status/Item/DeviceList/Response上级---下级SIP/2.0200OKVia:SIP/2.0/UDP10.129.4.13:5080;branch
本文标题:28181平台对接接口详解
链接地址:https://www.777doc.com/doc-4663259 .html