El Friday 25 April 2008 07:41:09 Klaus Darilion escribió:
Shouldn't the realm be derived from the To/From header?
Except if it's specified in the 401/407 response. Note that some sip providers force the clients to configure a "realm" different than the domain, for example:
REGISTER sip:carpo.net SIP/2.0 To: "ibc" sip:ibc@carpo.net From: "ibc" sip:ibc@carpo.net;tag=kyhoq
SIP/2.0 401 Unauthorized WWW-Authenticate: Digest realm="carpo", nonce="4811a871ab94af719b4fcc7e01b491f69aab22d3"
REGISTER sip:carpo.net SIP/2.0 To: "ibc" sip:ibc@carpo.net From: "ibc" sip:ibc@carpo.net;tag=kyhoq Authorization: Digest username="ibc", realm="carpo", nonce="4811a871ab94af719b4fcc7e01b491f69aab22d3", uri="sip:carpo.net", response="5cd9163c8ee5eb2aa7979725f45ed80e",algorithm=MD5
Regards.