平臺(tái)對(duì)接接口詳解_第1頁(yè)
平臺(tái)對(duì)接接口詳解_第2頁(yè)
平臺(tái)對(duì)接接口詳解_第3頁(yè)
平臺(tái)對(duì)接接口詳解_第4頁(yè)
平臺(tái)對(duì)接接口詳解_第5頁(yè)
已閱讀5頁(yè),還剩6頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、28181 平臺(tái)對(duì)接 接口詳解信令接口平臺(tái)注冊(cè)下級(jí)平臺(tái)主動(dòng)向上級(jí)平臺(tái)注冊(cè);注冊(cè)鑒權(quán)信息(用戶名和密碼)由上級(jí)提供;舉例說(shuō)明:下級(jí)-> 上級(jí)REGISTERsip:SIP/2.0Call-ID:CSeq:1REGISTERFrom:<sip:To:Max-Forwards:70Contact:Expires:3600Via:SIP/2.0/UDP;branchContent-Length:0上級(jí)-> 下級(jí)SIP/2.0401UnauthorizedVia:SIP/2.0/UDP;branchFrom:To:Call-ID:CSeq:1REGISTERWWW-Authentica

2、te:Digestrealm="1234",nonce="7104983f5477dd30a65167b28553df65",algorithm=MD5User-Agent:HikvisionExpires:3600Content-Length:0下級(jí)-> 上級(jí)REGISTERSIP/2.0Call-ID:CSeq:2REGISTERFrom:To:Max-Forwards:70Contact:Via:SIP/2.0/UDP;branchAuthorization:Digest username="admin ",realmre

3、sponse="Expires:3600Content-Length:0上級(jí) -> 下級(jí)SIP/2.0200OKVia:SIP/2.0/UDP;branchFrom:To:Call-ID:CSeq:2REGISTERContact:User-Agent:HikvisionDate:2013-07-27T14:45:39Content-Length:0平臺(tái)心跳?;钕录?jí)平臺(tái)定期向上級(jí)平臺(tái)發(fā)心跳消息;定期時(shí)間可配置,上下級(jí)配置一致;上級(jí)平臺(tái)連續(xù)三次未收到下級(jí)心跳消息,則認(rèn)為下級(jí)平臺(tái)離線;下級(jí)平臺(tái)連續(xù)三次未收到心跳響應(yīng),則認(rèn)為上級(jí)平臺(tái)離線;舉例說(shuō)明:下級(jí) -> 上級(jí)MESSAGE

4、SIP/2.0Call-ID:CSeq:1MESSAGEFrom:To:Max-Forwards:70Content-Type:application/XmlVia:SIP/2.0/UDP;branchContent-Length:138<xmlversion="1.0"><Notify> <CmdType>Keepalive</CmdType> <SN>43</SN><DeviceID></DeviceID><Status>OK</Status><

5、/Notify>上級(jí) -> 下級(jí)SIP/2.0200OKVia:SIP/2.0/UDP;branchFrom:To:Call-ID:CSeq:1MESSAGE平臺(tái)設(shè)備共享下級(jí)平臺(tái)將設(shè)備共享給上級(jí)平臺(tái),共享關(guān)系臨時(shí)保存在本地?cái)?shù)據(jù)庫(kù);Content-Length:0下級(jí)平臺(tái)收到上級(jí)平臺(tái)的目錄查詢(xún)消息時(shí),返回共享給該上級(jí)平臺(tái)的所有共享設(shè)備信息;上級(jí)平臺(tái)收到目錄查詢(xún)響應(yīng)結(jié)果后,根據(jù)設(shè)備編碼或自定義方式給設(shè)備建立目錄;上級(jí)平臺(tái)最好支持定期查詢(xún)目錄和手動(dòng)查詢(xún)目錄功能,以便及時(shí)獲取到下級(jí)平臺(tái)新共享的設(shè)備;舉例說(shuō)明上級(jí) -> 下級(jí)MESSAGESIP/2.0Via:SIP/2.0/UDP;r

6、portFrom:To:Call-ID:CSeq:20MESSAGEContent-Type:Application/MANSCDP+xmlMax-Forwards:70User-Agent:HikvisionContent-Length:127<xmlversion="1.0"><Query><CmdType>Catalog</CmdType><SN>8903</SN><DeviceID></DeviceID></Query>下級(jí) -> 上級(jí)SIP/2.020

7、0OKTo:Via:SIP/2.0/UDP;rportCSeq:20MESSAGECall-ID:From:Content-Length:0下級(jí) -> 上級(jí)MESSAGESIP/2.0Call-ID:CSeq:1MESSAGEFrom:To:Max-Forwards:70Content-Type:application/MANSCDP+XMLVia:SIP/2.0/UDP;branchContent-Length:746<xmlversion="1.0"encoding="UTF-8"><Response><CmdTy

8、pe>Catalog</CmdType><SN>8903</SN> <DeviceID></DeviceID><SumNum>2</SumNum><DeviceListNum="1"><Item><DeviceID></DeviceID><Name>共享鏡頭 01</Name><Manufacturer>hik</Manufacturer><Owner>1</Owner&g

9、t;<Model>1</Model><CivilCodeCivilCode><Address>1</Address><Parental>0</Parental><CertNum>1</CertNum><Certifiable>1</Certifiable><ErrCode>400</ErrCode><ParentID></ParentID><RegisterWay>1</RegisterWay>

10、;<Secrecy>0</Secrecy><IPAddress></IPAddress><Port>0</Port><Longitude>0.000000</Longitude><Latitude>0.000000</Latitude><Status>ON</Status></Item></DeviceList></Response>上級(jí)一> 下級(jí)SIP/2.0200OKVia:SIP/2.0/UDP;bran

11、chFrom:To:Call-ID:CSeq:1MESSAGEUser-Agent:HikvisionContent-Length:0下級(jí)-> 上級(jí)MESSAGESIP/2.0Call-ID:CSeq:1MESSAGEFrom:To:Max-Forwards:70Content-Type:application/MANSCDP+XMLVia:SIP/2.0/UDP;branchContent-Length:749<xmlversion="1.0"encoding="UTF-8"><Response><CmdType&g

12、t;Catalog</CmdType><SN>8903</SN><DevicelDDevicelD><SumNum>2</SumNum><DeviceListNum="1"><ltem><DevicelD></DevicelD><Name>共享鏡頭 02</Name><Manufacturer>hik</Manufacturer><0wner>1 </Owner><Model&g

13、t;1</Model><CivilCodeCivilCode><Address>1 </Address><Parental>O</Parental><CertNum>1 </CertNum><Certifiable>1 </Certifiable><ErrCode>400</ErrCode><ParentlDParentlD><RegisterWay>1 </RegisterWay><Secrecy>O&

14、lt;/Secrecy><IPAddress></IPAddress><Port>0</Port><Longitude>0.000000</Longitude><Latitude>O.OOOOOO</Latitude><Status>ON</Status></ltem></DeviceList></Response>上級(jí)一> 下級(jí)SIP/2.02000KVia:SIP/2.0/UDP;branchFrom:To:Call-ID:

15、CSeq:1 MESSAGEUser-Agent: HikvisionContent-Length:0備注:上級(jí)平臺(tái)收到下級(jí)平臺(tái)目錄查詢(xún)響應(yīng)消息后,根據(jù)SumNu優(yōu)段確定共享設(shè)備數(shù)量,并累計(jì)DeviceList 的Item數(shù)量,當(dāng)累計(jì)數(shù)量和SumNu"段值相等時(shí),則說(shuō)明查詢(xún)結(jié)束。共享設(shè)備狀態(tài)變更通知下級(jí)平臺(tái)共享設(shè)備狀態(tài)變更時(shí)通知給上級(jí)平臺(tái);舉例說(shuō)明:下級(jí)一> 上級(jí)NOTIFYSIP/2.0Call-ID:CSeq:1NOTIFYFrom:To:Max-Forwards:70Content-Type:application/MANSCDP+XMLVia:SIP/2.0/UDP;b

16、ranchContent-Length:747<xmlversion='1.0'encoding='UTF-8'><Response><CmdType>Catalog</CmdType><SN>3</SN><DeviceIDDeviceID><SumNum>1</SumNum><DeviceListNum="1"><Item><DeviceIDDeviceID><Name>共享鏡頭 01&

17、lt;/Name><Manufacturer>hik</Manufacturer><Model>1</Model><Owner>1</Owner><CivilCodeCivilCode><Address>1</Address><Parental>0</Parental><CertNum>1</CertNum><Certifiable>1</Certifiable><ErrCode>400</E

18、rrCode><ParentIDParentID><RegisterWay>1</RegisterWay><Secrecy>0</Secrecy><IPAddress></IPAddress><Port>0</Port><Longitude>0.000000</Longitude><Latitude>0.000000</Latitude><Status>OFF </Status></Item><

19、;/DeviceList></Response>上級(jí)一> 下級(jí)SIP/2.0200OKVia:SIP/2.0/UDP;branchFrom:To:Call-ID:CSeq:1NOTIFYUser-Agent:HikvisionContent-Type:application/MANSCDP+XML Content-Length:171<xmlversion="1.0"encoding="GB2312"><Response><CmdType>Catalog</CmdType><S

20、N>3</SN><DeviceIDDeviceID><Result>OK</Result></Response>實(shí)時(shí)視頻上級(jí)平臺(tái)請(qǐng)求下級(jí)共享鏡頭視頻;舉例說(shuō)明:上級(jí) -> 下級(jí)INVITEsip:SIP/2.0Via:SIP/2.0/UDP;rportFrom:To:Call-ID:CSeq:20INVITEContact:Content-Type:Application/SDPMax-Forwards:70User-Agent:HikvisionSubject:0Content-Length:220v=000INIP4s

21、=Playc=INIP4t=00m=video5400RTP/AVP 969798a=rtpmap:96PS/90000a=rtpmap:97MPEG4/90000a=rtpmap:98H264/90000a=recvonly 下級(jí) -> 上級(jí)SIP/2.0100TryingTo:Via:SIP/2.0/UDP;rportCSeq:20INVITECall-ID:From:Content-Length:0下級(jí) -> 上級(jí) SIP/2.0200OKTo:Via:SIP/2.0/UDP;rport CSeq:20INVITE Call-ID:From:Contact:<sip&g

22、t;Content-Type:application/sdp Content-Length:277 v=0o=huawei0INIP4s=Playc=INIP4t=00m=video6016RTP/AVP96 a=rtpmap:96PS/90000 a=sendonlym=audio6018RTP/AVP100 a=rtpmap:100G711U a=sendonly a=username:admin a=password:123456 f=v/2/1/0/1/0a/上級(jí) -> 下級(jí) ACKsipSIP/2.0 Via:SIP/2.0/UDP;rportFrom:To:Call-ID:C

23、Seq:20ACKContact:Max-Forwards:70 User-Agent:Hikvision Content-Length:0 上級(jí) -> 下級(jí)BYEsipSIP/2.0Via:SIP/2.0/UDP;rportFrom:To:Call-ID:CSeq:21BYEContact:Max-Forwards:70 User-Agent:HikvisionContent-Length:0云臺(tái)控制上級(jí)平臺(tái)向下級(jí)平臺(tái)發(fā)送云臺(tái)控制請(qǐng)求;舉例說(shuō)明:上級(jí) -> 下級(jí)MESSAGESIP/2.0Via:SIP/2.0/UDP;rportFrom:To:Call-ID:CSeq:20ME

24、SSAGEContent-Type:Application/MANSCDP+xmlMax-Forwards:70User-Agent:HikvisionContent-Length:298<xmlversion="1.0"><Control><CmdType>DeviceControl</CmdType><SN>8</SN><DeviceID></DeviceID><PTZCmd>a50f4d0000000001 </PTZCmd><Info>

25、<ControlPriority>150</ControlPriority><startX>0</startX><startY>0</startY><endX>0</endX><endY>0</endY></Info></Control>下級(jí) -> 上級(jí)SIP/2.0200OKTo:Via:SIP/2.0/UDP;rportCSeq:20MESSAGECall-ID:From:Content-Length:0錄像查詢(xún)上級(jí)平臺(tái)向下級(jí)平臺(tái)查詢(xún)錄像請(qǐng)求

26、;舉例說(shuō)明:上級(jí) -> 下級(jí)MESSAGESIP/2.0Via:SIP/2.0/UDP;rportFrom:To:Call-ID:CSeq:20MESSAGEContent-Type:Application/MANSCDP+xmlMax-Forwards:70User-Agent:HikvisionContent-Length:258<xmlversion="1.0"><Query><CmdType> RecordInfo </CmdType><SN>1894</SN><DeviceID&g

27、t;</DeviceID><StartTime> 2013-11-07T00:00:00 </StartTime><EndTime>2013-11-07T23:59:59 </EndTime><Type> all </Type><RecordPos>1</RecordPos></Query>下級(jí) -> 上級(jí)SIP/2.0200OKTo:Via:SIP/2.0/UDP;rportCSeq:20MESSAGECall-ID:From:Content-Length:0下級(jí) -

28、> 上級(jí)MESSAGESIP/2.0Call-ID:CSeq:1MESSAGEFrom:To:Max-Forwards:70Content-Type:application/MANSCDP+XMLContent-Encoding:UTF-8Via:SIP/2.0/UDP;branchContent-Length:566<xmlversion='1.0'encoding='UTF-8'><Response><CmdType> RecordInfo </CmdType><SN> 1894</SN

29、><DeviceID></DeviceID><Name> 共享鏡頭 01</Name><SumNum> 2</SumNum><RecordListNum= '1' ><Item><DeviceID></DeviceID><Name>共享鏡頭 01</Name><StartTime> 2013-11-06T23:17:32 </StartTime><EndTime>2013-11-07T00:02:48 </EndTime><Type>time </Type><

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論