GB28181 achieve web camera live without plug-ins, during playback device status analysis

See deployed on LiveGBS GB28181 streaming media server https://www.liveqing.com/docs/download/LiveGBS.html . Access can be achieved GB28181 camera, DVR by LiveGBS streaming service, other support GB28181 video platform, free live web plug-ins.
The following is a signaling device analysis GB28181 successful registration status query:

1. Send device status query command (>> Service Equipment)

MESSAGE sip:34020000001320000264@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.135:5060;rport;branch=z9hG4bK847293060
From: <sip:34020000002000000001@3402000000>;tag=603293060
To: <sip:34020000001320000264@3402000000>
Call-ID: 521293060
CSeq: 15 MESSAGE
Max-Forwards: 70
User-Agent: LiveQing
Content-Length: 167
Content-Type: Application/MANSCDP+xml

<?xml version="1.0" encoding="UTF-8"?>
<Query>
    <CmdType>DeviceStatus</CmdType>
    <SN>800293061</SN>
    <DeviceID>34020000001320000264</DeviceID>
</Query>

2. The terminal apparatus in response to a request (service equipment >>)

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.2.135:5060;rport=5060;branch=z9hG4bK847293060
From: <sip:34020000002000000001@3402000000>;tag=603293060
To: <sip:34020000001320000264@3402000000>;tag=1918280724
Call-ID: 521293060
CSeq: 15 MESSAGE
User-Agent: IP Camera
Content-Length: 0

3. Equipment upload status information (>> Service Equipment)

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=z9hG4bK535315480
From: <sip:34020000001320000264@3402000000>;tag=1034018613
To: <sip:34020000002000000001@3402000000>
Call-ID: 1544085115
CSeq: 20 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: IP Camera
Content-Length: 342

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<CmdType>DeviceStatus</CmdType>
<SN>800293061</SN>
<DeviceID>34020000001320000264</DeviceID>
<Result>OK</Result>
<Online>ONLINE</Online>
<Status>OK</Status>
<DeviceTime>2019-08-07T13:56:27</DeviceTime>
<Alarmstatus Num="0">
</Alarmstatus>
<Encode>ON</Encode>
<Record>OFF</Record>
</Response>

4. The response server (service >> Equipment)

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.2.64:5060;rport=5060;received=192.168.2.64;branch=z9hG4bK535315480
From: <sip:34020000001320000264@3402000000>;tag=1034018613
To: <sip:34020000002000000001@3402000000>;tag=32293130
CSeq: 20 MESSAGE
Call-ID: 1544085115
User-Agent: LiveQing
Content-Length: 0

Guess you like

Origin www.cnblogs.com/kumukim/p/11329919.html