28181接入網關查詢NVR錄像文件

使用公安spvmn的調測軟件測試,下發如下命令:

<?xml version="1.0"?>
<Query>
<CmdType>RecordInfo</CmdType>
<SN>17430</SN>
<DeviceID>34020000001110000001</DeviceID>
<StartTime>2016-05-11T19:46:17</StartTime>
<EndTime>2016-05-12T19:46:17</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Query>

爲了方便我將nvr的ID改爲111,按編碼規則應該是118,發送上述命令後,設備返回:

MESSAGE sip:34020000001310000001@34020000 SIP/2.0
Call-ID: [email protected]
CSeq: 1 MESSAGE
From: <sip:34020000002000000001@34020000>;tag=60103465_53173353_1f01e42a-5ce4-4790-9243-7e7901a6f01c
To: <sip:34020000001310000001@34020000>
Max-Forwards: 70
Content-Type: Application/MANSCDP+xml
Route: <sip:[email protected]:5060;lr>
Via: SIP/2.0/UDP 10.60.1.189:5060;branch=z9hG4bK1f01e42a-5ce4-4790-9243-7e7901a6f01c_53173353_7406162174963
Content-Length: 255

<?xml version="1.0"?>
<Query>
<CmdType>RecordInfo</CmdType>
<SN>17430</SN>
<DeviceID>34020000001110000001</DeviceID>
<StartTime>2016-05-11T19:46:17</StartTime>
<EndTime>2016-05-12T19:46:17</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Query>
SIP/2.0 400 Bad Request
Via: SIP/2.0/UDP 10.60.1.189:5060;branch=z9hG4bK1f01e42a-5ce4-4790-9243-7e7901a6f01c_53173353_7406162174963
From: <sip:34020000002000000001@34020000>;tag=60103465_53173353_1f01e42a-5ce4-4790-9243-7e7901a6f01c
To: <sip:34020000001310000001@34020000>;tag=404651674
Call-ID: [email protected]
CSeq: 1 MESSAGE
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length: 0

設備回了一個不能識別,說明這樣發送是有點問題的,NVR綁定了兩個IPC,需要設置通道編碼ID,查錄像文件應該是按通道ID來查,而不是按NVR,不然會出錯。


不是發NVR的id,而是發送通道ID,往哪裏發呢,當然是往NVR的地址了,具體如下:

<?xml version="1.0"?>
<Query>
<CmdType>RecordInfo</CmdType>
<SN>17430</SN>
<DeviceID>34020000001310000004</DeviceID>
<StartTime>2016-05-11T19:46:17</StartTime>
<EndTime>2016-05-12T19:46:17</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Query>

設備返回:
MESSAGE sip:34020000001310000001@34020000 SIP/2.0
Call-ID: [email protected]
CSeq: 1 MESSAGE
From: <sip:34020000002000000001@34020000>;tag=84598796_53173353_1f01e42a-5ce4-4790-9243-7e7901a6f01c
To: <sip:34020000001310000001@34020000>
Max-Forwards: 70
Content-Type: Application/MANSCDP+xml
Route: <sip:[email protected]:5060;lr>
Via: SIP/2.0/UDP 10.60.1.189:5060;branch=z9hG4bK1f01e42a-5ce4-4790-9243-7e7901a6f01c_53173353_7887086612904
Content-Length: 255

<?xml version="1.0"?>
<Query>
<CmdType>RecordInfo</CmdType>
<SN>17430</SN>
<DeviceID>34020000001310000004</DeviceID>
<StartTime>2016-05-11T19:46:17</StartTime>
<EndTime>2016-05-12T19:46:17</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Query>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.60.1.189:5060;branch=z9hG4bK1f01e42a-5ce4-4790-9243-7e7901a6f01c_53173353_7887086612904
From: <sip:34020000002000000001@34020000>;tag=84598796_53173353_1f01e42a-5ce4-4790-9243-7e7901a6f01c
To: <sip:34020000001310000001@34020000>;tag=463233309
Call-ID: [email protected]
CSeq: 1 MESSAGE
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length: 0


MESSAGE sip:34020000002000000001@3402000000 SIP/2.0
Via: SIP/2.0/UDP 10.60.1.245:5060;rport=5060;branch=z9hG4bK1291769096;received=10.60.1.245
From: <sip:34020000001110000001@3402000000>;tag=536001771
To: <sip:34020000002000000001@3402000000>
Call-ID: 1953755354
CSeq: 20 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length: 2964

<?xml version="1.0"?>
<Response>
<CmdType>RecordInfo</CmdType>
<SN>17430</SN>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<SumNum>15</SumNum>
<RecordList Num="10">
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462966268_1462968241</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-11T19:31:08</StartTime>
<EndTime>2016-05-11T20:04:01</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462968250_1462971411</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-11T20:04:10</StartTime>
<EndTime>2016-05-11T20:56:51</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462971418_1462971796</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-11T20:56:58</StartTime>
<EndTime>2016-05-11T21:03:16</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462971736_1462971791</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-11T21:02:16</StartTime>
<EndTime>2016-05-11T21:03:11</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462971858_1462975248</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-11T21:04:18</StartTime>
<EndTime>2016-05-11T22:00:48</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462975253_1462978311</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-11T22:00:53</StartTime>
<EndTime>2016-05-11T22:51:51</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462978317_1462980934</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-11T22:51:57</StartTime>
<EndTime>2016-05-11T23:35:34</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462980941_1462984455</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-11T23:35:41</StartTime>
<EndTime>2016-05-12T00:34:15</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462984461_1462988287</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-12T00:34:21</StartTime>
<EndTime>2016-05-12T01:38:07</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462988296_1462992080</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-12T01:38:16</StartTime>
<EndTime>2016-05-12T02:41:20</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
</RecordList>
</Response>

SIP/2.0 200 OK
To: <sip:34020000002000000001@3402000000>;tag=19640308_53173353_362b2cba-f607-44f6-a970-7671a73bc4ef
Via: SIP/2.0/UDP 10.60.1.245:5060;rport=5060;branch=z9hG4bK1291769096;received=10.60.1.245
CSeq: 20 MESSAGE
Call-ID: 1953755354
From: <sip:34020000001110000001@3402000000>;tag=536001771
Content-Length: 0


MESSAGE sip:34020000002000000001@3402000000 SIP/2.0
Via: SIP/2.0/UDP 10.60.1.245:5060;rport=5060;branch=z9hG4bK1023085277;received=10.60.1.245
From: <sip:34020000001110000001@3402000000>;tag=1951781126
To: <sip:34020000002000000001@3402000000>
Call-ID: 1296376675
CSeq: 20 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length: 1588

<?xml version="1.0"?>
<Response>
<CmdType>RecordInfo</CmdType>
<SN>17430</SN>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<SumNum>15</SumNum>
<RecordList Num="5">
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462992081_1462995940</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-12T02:41:21</StartTime>
<EndTime>2016-05-12T03:45:40</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462995949_1462999775</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-12T03:45:49</StartTime>
<EndTime>2016-05-12T04:49:35</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1462999783_1463003096</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-12T04:49:43</StartTime>
<EndTime>2016-05-12T05:44:56</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1463003096_1463015058</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-12T05:44:56</StartTime>
<EndTime>2016-05-12T09:04:18</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001310000004</DeviceID>
<Name>IPCamera 01</Name>
<FilePath>1463015058_1463020210</FilePath>
<Address>Address 1</Address>
<StartTime>2016-05-12T09:04:18</StartTime>
<EndTime>2016-05-12T10:30:10</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
</RecordList>
</Response>

SIP/2.0 200 OK
To: <sip:34020000002000000001@3402000000>;tag=34859437_53173353_272146f9-97d1-4332-8f56-10a9088fd18a
Via: SIP/2.0/UDP 10.60.1.245:5060;rport=5060;branch=z9hG4bK1023085277;received=10.60.1.245
CSeq: 20 MESSAGE
Call-ID: 1296376675
From: <sip:34020000001110000001@3402000000>;tag=1951781126
Content-Length: 0

這樣就可以查到NVR的錄像文件了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章