平台对接接口详解

更新时间:2023-06-17 14:55:26 阅读: 评论:0

28181平台对接接口详解
信令接口
平台注册
●下级平台主动向上级平台注册;
●注册鉴权信息用户名和密码由上级提供;
●举例说明:
下级--->上级
REGISTERsip:SIP/2.0
Call-ID:
CSeq:1REGISTER
精神焦虑症的自救
From:<sip:
To:
Max-Forwards:70
健康怎么写Contact:
Expires:3600
Via:SIP/2.0/UDP;branch
Content-Length:0
上级--->下级
SIP/2.0401Unauthorized
Via:SIP/2.0/UDP;branch
From:
To:
Call-ID:
CSeq:1REGISTER
-Authenticate:Digestrealm="1234";nonce="7104983f5477dd30a65167b28553df65";algorithm=MD5
Ur-Agent:Hikvision
Expires:3600
Content-Length:0
下级--->上级
REGISTERSIP/2.0
Call-ID:
CSeq:2REGISTER
From:
To:
Max-Forwards:70
Contact:
Via:SIP/2.0/UDP;branch
Authorization:Digest urname="admin";realm respon="
Expires:3600
Content-Length:0
上级--->下级
SIP/2.0200OK
Via:SIP/2.0/UDP;branch
From:
To:
Call-ID:
CSeq:2REGISTER咖啡胶囊机
Contact:
Ur-Agent:Hikvision
Date:2013-07-27T14:45:39
Content-Length:0
平台心跳保活
●下级平台定期向上级平台发心跳消息;
●定期时间可配置;上下级配置一致;
●上级平台连续三次未收到下级心跳消息;则认为下级平台离线;
●下级平台连续三次未收到心跳响应;则认为上级平台离线;
●举例说明:
下级--->上级
MESSAGESIP/2.0
Call-ID:
CSeq:1MESSAGE
From:
To:
Max-Forwards:70
Content-Type:application/Xml
Via:SIP/2.0/UDP;branch
Content-Length:138
<xmlversion="1.0">
<Notify>
<CmdType>Keepalive</CmdType>
<SN>43</SN>
<DeviceID></DeviceID>
<Status>OK</Status>
</Notify>
上级--->下级
SIP/2.0200OK
e5540
Via:SIP/2.0/UDP;branch
From:
To:
Call-ID:
CSeq:1MESSAGE
Content-Length:0
平台设备共享
●下级平台将设备共享给上级平台;共享关系临时保存在本地数据库;
●下级平台收到上级平台的目录查询消息时;返回共享给该上级平台的所有共享设备信息;
●上级平台收到目录查询响应结果后;根据设备编码或自定义方式给设备建立目录;
●上级平台最好支持定期查询目录和手动查询目录功能;以便及时获取到下级平台新共享的设
备;
●举例说明
上级--->下级
MESSAGESIP/2.0
Via:SIP/2.0/UDP;rport
From:
To:
Call-ID:
CSeq:20MESSAGE
Content-Type:Application/MANSCDP+xml
Max-Forwards:70
Ur-Agent:Hikvision
Content-Length:127
<xmlversion="1.0">
<Query>
<CmdType>Catalog</CmdType>
<SN>8903</SN>
<DeviceID></DeviceID>
</Query>
下级--->上级
SIP/2.0200OK
To:
Via:SIP/2.0/UDP;rport
CSeq:20MESSAGE
Call-ID:
From:
Content-Length:0
下级--->上级
MESSAGESIP/2.0
Call-ID:
CSeq:1MESSAGE
From:
To:
Max-Forwards:70
Content-Type:application/MANSCDP+XML
Via:SIP/2.0/UDP;branch
Content-Length:746
<xmlversion="1.0"encoding="UTF-8">
<Respon>
<CmdType>Catalog</CmdType>
<SN>8903</SN>
<DeviceID></DeviceID>
<SumNum>2</SumNum>
<DeviceListNum="1">
<Item>
<DeviceID></DeviceID>
<Name>共享镜头01</Name>
<Manufacturer>hik</Manufacturer>
<Owner>1</Owner>
<Model>1</Model>
<CivilCodeCivilCode>
<Address>1</Address>
<Parental>0</Parental>
<CertNum>1</CertNum>
<Certifiable>1</Certifiable>
<ErrCode>400</ErrCode>
<ParentID></ParentID>
<RegisterWay>1</RegisterWay>
<Secrecy>0</Secrecy>
<IPAddress></IPAddress>
<Port>0</Port>
<Longitude>0.000000</Longitude>
<Latitude>0.000000</Latitude>
<Status>ON</Status>
</Item>
</DeviceList>
</Respon>
上级--->下级
SIP/2.0200OK
Via:SIP/2.0/UDP;branch
From:
To:
Call-ID:
CSeq:1MESSAGE
Ur-Agent:Hikvision
Content-Length:0
手机处理器功耗
下级--->上级
MESSAGESIP/2.0
Call-ID:
CSeq:1MESSAGE
From:
To:
Max-Forwards:70
Content-Type:application/MANSCDP+XML Via:SIP/2.0/UDP;branch
Content-Length:749
<xmlversion="1.0"encoding="UTF-8">
<Respon>
<CmdType>Catalog</CmdType>
<SN>8903</SN>
<DeviceIDDeviceID>
<SumNum>2</SumNum>
<DeviceListNum="1">
<Item>
<DeviceID></DeviceID>
<Name>共享镜头02</Name>
<Manufacturer>hik</Manufacturer>
<Owner>1</Owner>
<Model>1</Model>
<CivilCodeCivilCode>
<Address>1</Address>
<Parental>0</Parental>
<CertNum>1</CertNum>
<Certifiable>1</Certifiable>
<ErrCode>400</ErrCode>
<ParentIDParentID>
<RegisterWay>1</RegisterWay>
<Secrecy>0</Secrecy>
<IPAddress></IPAddress>
卢姓的来源<Port>0</Port>
<Longitude>0.000000</Longitude>
<Latitude>0.000000</Latitude>
<Status>ON</Status>
</Item>
</DeviceList>
迈巴赫exelero</Respon>
上级--->下级
SIP/2.0200OK
Via:SIP/2.0/UDP;branch
From:
To:
Call-ID:
CSeq:1MESSAGE
Ur-Agent:Hikvision
Content-Length:0
备注:
上级平台收到下级平台目录查询响应消息后;根据SumNum字段确定共享设备数量;并累计DeviceList的Item数量;当累计数量和SumNum字段值相等时;则说明查询结束..
共享设备状态变更通知
●下级平台共享设备状态变更时通知给上级平台;描写下雪的词语
●举例说明:
下级--->上级

本文发布于:2023-06-17 14:55:26,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/976310.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:平台   共享   设备
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图