0
回答
jain-sip的voip客户端注册返回401错误
【腾讯云】校园拼团福利,1核2G服务器10元/月!>>>   

发送请求:


 REGISTER sip:@10.2.252.254:5060 SIP/2.0
Call-ID: d00beaf059a9d5058ce7f6458fbb6023@10.2.252.130
CSeq: 1 REGISTER
From: "test" <sip:test@10.2.252.130:5060;transport=udp>;tag=JIPP1.0
To: <sip:@10.2.252.254:5060>
Via: SIP/2.0/UDP 10.2.252.130:5060;branch=branch1;received=10.2.252.130
Max-Forwards: 70
Content-Length: 0

返回结果

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.2.252.130:5060;branch=branch1;received=10.2.252.130
From: "test" <sip:test@10.2.252.130:5060;transport=udp>;tag=JIPP1.0
To: <sip:@10.2.252.254:5060>;tag=as5cdb57d1
Call-ID: d00beaf059a9d5058ce7f6458fbb6023@10.2.252.130
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,SUBSCRIBE,NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5,realm="asterisk",nonce="3c721a64"
Content-Length: 0

接下来该如何根据此返回再次发送注册请求呢?
麻烦大侠细说一下response是怎么构造的

举报
阿旺
发帖于5年前 0回/1K+阅
顶部