Thanks Brett!  It working now for me.

 Before I am not converting the MD5 hash string (H(A1) and H(A2)) to Hex
Strings. Once got it converted to Hex string and used in:

MD5(concat(HexString of Hash of A1 ":" nonce-value ":" nc-value ":"
cnonce-value ":" qop-value ":" HexString of Hash of A2))

Where A1 is MD5(username ":" realm ":" password) and A2 is MD5(METHOD ":"
Digest URI)

Its working now!

CoolGoose.

On Fri, Mar 6, 2009 at 9:58 AM, Brett Tate <[email protected]> wrote:

> Some common issues relate to incorrect quoting and un-quoting of values
> within calculation and/or headers.
>
>      request-digest  = <"> < KD ( H(A1),     unq(nonce-value)
>                                          ":" nc-value
>                                          ":" unq(cnonce-value)
>                                          ":" unq(qop-value)
>                                          ":" H(A2)
>                                  ) <">
>
> A1       = unq(username-value) ":" unq(realm-value) ":" passwd
>
> A2       = Method ":" digest-uri-value
>
>
> > -----Original Message-----
> > From: [email protected] [mailto:sip-
> > [email protected]] On Behalf Of cool goose
> > Sent: Friday, March 06, 2009 12:36 PM
> > To: [email protected]
> > Subject: [Sip-implementors] Digest Authentication
> >
> > Guys,
> >
> > Can someone explain how an digest response should be calculated when UAC
> > receives 401 Unauthorized? I read RFC 2617 and this what I am
> implementing
> >
> > If "qop" value is "auth":
> >
> > respone = MD5(concat(MD5(username":"realm":"password)":" nonce-value ":"
> > nc-value ":" cnonce-value ":" qop-value ":" MD5(Method ":" Digest Uri)))
> >
> >
> > and the UAS responds with 403 Forbidden.
> >
> > Thank You,
> > CoolGoose.
> > _______________________________________________
> > Sip-implementors mailing list
> > [email protected]
> > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
>
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to