这里给出一个sip注册的示例,其中平台注册的密码为12345678,供相关开发参考。
REGISTER sip:34020000002000000001@192.168.88.119 SIP/2.0
Via: SIP/2.0/UDP 192.168.88.173:45411;rport=45411;branch=z9hG4bK73649;received=192.168.88.173
Max-Forwards: 70
To: <sip:34020000001320000001@192.168.88.119>
From: <sip:34020000001320000001@192.168.88.119>;tag=z9hG4bK02568044
Call-ID: 670200377048@192.168.88.173
CSeq: 391 REGISTER
Contact: <sip:34020000001320000001@192.168.88.173:45411;transport=UDP>
Expires: 3600
User-Agent: E5
Content-Length: 0
SIP/2.0 401 Unauthorized
CSeq: 391 REGISTER
Call-ID: 670200377048@192.168.88.173
From: <sip:34020000001320000001@192.168.88.119>;tag=z9hG4bK02568044
To: <sip:34020000001320000001@192.168.88.119>;tag=08366957_53173353_88700d85-4535-4166-9214-f3c990e4808c
Via: SIP/2.0/UDP 192.168.88.173:45411;rport=45411;branch=z9hG4bK73649;received=192.168.88.173
WWW-Authenticate: Digest realm="3402000000",nonce="66f40ae0abc1f50a"
Content-Length: 0
REGISTER sip:34020000002000000001@192.168.88.119 SIP/2.0
Via: SIP/2.0/UDP 192.168.88.173:45411;rport=45411;branch=z9hG4bK92467;received=192.168.88.173
Max-Forwards: 70
To: <sip:34020000001320000001@192.168.88.119>
From: <sip:34020000001320000001@192.168.88.119>;tag=z9hG4bK02568044
Call-ID: 670200377048@192.168.88.173
CSeq: 392 REGISTER
Contact: <sip:34020000001320000001@192.168.88.173:45411;transport=UDP>
Expires: 3600
User-Agent: E5
Authorization: Digest username="34020000001320000001",realm="3402000000",nonce="66f40ae0abc1f50a",uri="sip:34020000002000000001@192.168.88.119",response="f21538d5edbd764a1929c1a66dec8644"
Content-Length: 0
SIP/2.0 200 OK
CSeq: 392 REGISTER
Call-ID: 670200377048@192.168.88.173
From: <sip:34020000001320000001@192.168.88.119>;tag=z9hG4bK02568044
To: <sip:34020000001320000001@192.168.88.119>;tag=96936184_53173353_70a5e88c-c217-4513-9424-7ee605d470e7
Via: SIP/2.0/UDP 192.168.88.173:45411;rport=45411;branch=z9hG4bK92467;received=192.168.88.173
Contact: <sip:34020000001320000001@192.168.88.173:45411;transport=UDP>
Expires: 3600
Date: 2021-08-25T12:04:20.889
TimeRevise: 20210825120420
Content-Length: 0
|