说明:SPVMN平台IP为192.168.8.180,设备IP为192.168.8.184
一、向平台注册的交互协议
1、客户机向SPVMN平台注册协议
REGISTER sip:34020000002000000001@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.8.184:5060;rport;branch=z9hG4bK1839159132
From: <sip:34020000001320000001@3402000000>;tag=1168363890
To: <sip:34020000001320000001@3402000000>
Call-ID: 434018964
CSeq: 1 REGISTER
Contact: <sip:34020000001320000001@192.168.8.184:5060>
Max-Forwards: 70
User-Agent: IP Camera
Expires: 3600
Content-Length: 0
2、平台回复包
SIP/2.0 401 Unauthorized
CSeq: 1 REGISTER
Call-ID: 434018964
From: <sip:34020000001320000001@3402000000>;tag=1168363890
To: <sip:34020000001320000001@3402000000>;tag=90691234_53173353_a67d0e0e-e55c-4ac7-9d5a-f78e149aaf81
Via: SIP/2.0/UDP 192.168.8.184:5060;rport=5060;branch=z9hG4bK1839159132;received=192.168.8.184
WWW-Authenticate: Digest realm="3402000000",nonce="b1f444e6805f2768"
Content-Length: 0
3、验证注册
REGISTER sip:34020000002000000001@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.8.184:5060;rport;branch=z9hG4bK119722870
From: <sip:34020000001320000