Hello list,

I've got a little problem with calculating the response to a 401
unauthorized message.

I captured some SIP Packets my kphone and SER exchange using etheral
and copied the data that is used for calculating the digest out of the
trace. Here it is:

username     = "1000"
realm        = "192.168.0.31"
password     = "1000"
digestURI    = "sip:192.168.0.31"
nonce        = "4520e111333a24d8c4f3d20c6171cc37dfa2be33"
recCounter   = "00000001"
cNonce       = "abcdefghi"
qualOfProt   IS MISSING!

Now I try to calculate the digest as follows: (rfc 2617)

HA1 = md5(username + ":" + realm + ":" + password)
HA2 = md5(digestURI)
response = md5(HA1 + ":" + nonce + ":" + recCounter + ":" + cNonce +
":" + qop + ":" + HA2)

I'm not sure about two points:

1.) Is it correct to use the value "sip:192.168.0.31" as digestURI? Or
is it s.th else?

2.) I don't get a value for qop in the ethereal trace. Don't I need
this value? Is it a constant?

Thanks for replies,
Holger
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to