GB28181流媒体web直播方案设备信息查询信令分析

关于LiveGBS GB28181流媒体服务器的部署详见https://www.liveqing.com/docs/download/LiveGBS.html。通过LiveGBS流媒体服务可以实现GB28181接入摄像头、硬盘录像机、其他支持GB28181的视频平台,实现网页无插件直播。

如下是GB28181注册成功后设备状态查询的信令分析:

1、发送设备信息查询命令 (服务>> 设备)

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

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

2、设备响应回复 (设备>>服务)

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.2.135:5060;rport=5060;branch=z9hG4bK818290845
From: <sip:34020000002000000001@3402000000>;tag=23290845
To: <sip:34020000001320000264@3402000000>;tag=334737784
Call-ID: 298290845
CSeq: 13 MESSAGE
User-Agent: IP Camera
Content-Length: 0

3、国标流媒体服务等待设备上传设备信息(设备>>服务)

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

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<CmdType>DeviceInfo</CmdType>
<SN>340290845</SN>
<DeviceID>34020000001320000264</DeviceID>
<Result>OK</Result>
<DeviceName>IP CAMERA</DeviceName>
<Manufacturer>Hikvision</Manufacturer>
<Model>DS-2CD2T20FD-I3</Model>
<Firmware>V5.4.41</Firmware>
</Response>
posted @ 2019-08-12 22:18 Kim的博客 阅读(...) 评论(...) 编辑 收藏