发送设备目录查询命令(服务>> 设备)
MESSAGE sip:34020000001320000264@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.135:5060;rport;branch=z9hG4bK364291932
From: <sip:34020000002000000001@3402000000>;tag=204291932
To: <sip:34020000001320000264@3402000000>
Call-ID: 955291932
CSeq: 14 MESSAGE
Max-Forwards: 70
User-Agent: LiveQing
Content-Length: 161
Content-Type: Application/MANSCDP+xml
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<CmdType>Catalog</CmdType>
<SN>55291932</SN>
<DeviceID>34020000001320000264</DeviceID>
</Query>
等待设备相应请求
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.2.135:5060;rport=5060;branch=z9hG4bK364291932
From: <sip:34020000002000000001@3402000000>;tag=204291932
To: <sip:34020000001320000264@3402000000>;tag=1240383345
Call-ID: 955291932
CSeq: 14 MESSAGE
User-Agent: IP Camera
Content-Length: 0
等待设备上传目录信息(设备>>服务)
MESSAGE sip:34020000002000000001@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.64:5060;rport=5060;received=192.168.2.64;branch=z9hG4bK74939292
From: <sip:34020000001320000264@3402000000>;tag=6586670
To: <sip:34020000002000000001@3402000000>
Call-ID: 1535161485
CSeq: 20 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: IP Camera
Content-Length: 587
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<CmdType>Catalog</CmdType>
<SN>55291932</SN>
<DeviceID>34020000001320000264</DeviceID>
<SumNum>1</SumNum>
<DeviceList Num="1">
<Item>
<DeviceID>34020000001320000264</DeviceID>
<Name>TSET</Name>
<Manufacturer>Hikvision</Manufacturer>
<Model>IP Camera</Model>
<Owner>Owner</Owner>
<CivilCode>CivilCode</CivilCode>
<Address>Address</Address>
<Parental>0</Parental>
<ParentID>34020000001320000264</ParentID>
<SafetyWay>0</SafetyWay>
<RegisterWay>1</RegisterWay>
<Secrecy>0</Secrecy>
<Status>ON</Status>
</Item>
</DeviceList>
</Response>