[Ken] SIP中Register Request的AuthenticationHeader
2010/06/26 留下评论
当UAC需要注册到UAs创建一个binding时,UAC发起的REGISTER的Header并一定包含AuthenticationHeader的信息,而是触发UAs的一个401(Unauthorized)的response,从来自于UAs的reponse,可以得到UAs的digest, Realm, Algorithms(MD5)等,这时UAC会利用这些信息创建带有AuthenticationHeader的REGISTER request,从来完成注册和绑定的过程。
UAC UAS
REGISTER without authentication
—————————————>
401 Response with server’s authentication
<—————————————
—————————————>
401 Response with server’s authentication
<—————————————
wait for time out
resend REGISTER with
authentication
—————————————–>
参考:http://www.ietf.org/rfc/rfc3261.txt