注册
直接贴个流程图吧,这里跟GB28181一致的。
参考信令:
步骤1
REGISTER sip:010090000000000000@111.203.3.78:21112 SIP/2.0
Via: SIP/2.0/UDP 100.106.180.41:15060;rport;branch=x5hG8bK235
From: <sip:010090016701000000@01009000>;tag=3723455366
To: <sip:010090016701000000@01009000>
Call-ID: 1082198914
CSeq: 2 REGISTER
Contact: <sip:010090016701000000@100.106.180.41:15060>
Max-Forwards: 70
User-Agent: SIP UAC V1.0.0.0
Expires: 3600
Content-Length: 0
步骤1回复
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 100.106.180.41:15060;rport=11999;branch=z9hG4bK215;received=117.70.170.180
From: <sip:010090016701000000@01009000>;tag=3723455366
To: <sip:010090016701000000@01009000>;tag=3Qx6zbFy
Call-ID: 1082198914
CSeq: 2 REGISTER
WWW-Authenticate: Digest realm="11.146.1.4",nonce="9bd055",algorithm="MD5"
Content-Length: 0
Contact: <sip:010090000000000000@11.146.1.4:21112>
User-Agent: GoSIP
步骤2
REGISTER sip:010090000000000000@111.203.3.78:21112 SIP/2.0
Via: SIP/2.0/UDP 100.106.180.41:11999;rport;branch=Rf1s3fEyX5rSa4OY
From: <sip:010090016701000000@01009000>;tag=3723455366
To: <sip:010090016701000000@01009000>
Call-ID: 1082198914
CSeq: 4 REGISTER
Contact: <sip:010090016701000000@117.70.170.180:11999>
Authorization: Digest username="010090016701000000", realm="11.146.1.4", nonce="9bd055", uri="sip:010090000000000000@117.70.170.180:11999", response="2fc3d346a8cce4323c9380184f6bcf39", algorithm="MD5"
Max-Forwards: 70
User-Agent: SIP UAC V1.0.0.0
Expires: 3600
Content-Length: 0
步骤2回复
SIP/2.0 200 OK
Via: SIP/2.0/UDP 100.106.180.41:11999;rport=11999;branch=Rf1s3fEyX5rSa4OY;received=117.70.170.180
From: <sip:010090016701000000@01009000>;tag=3723455366
To: <sip:010090016701000000@01009000>;tag=F61C71Ka
Call-ID: 1082198914
CSeq: 4 REGISTER
Contact: <sip:010090000000000000@11.146.1.4:21112>;expires=60
Date: 2022-04-20T23:29:42.951
Content-Length: 0
User-Agent: GoSIP
支持在国网B接口平台注册完毕。
|