yes, for me the secret is equal UserMD5. ________________________________
From: ext Wyne Wolf [mailto:sip....@gmail.com] Sent: Monday, January 24, 2011 5:03 PM To: Pavesi, Valdemar (NSN - US/Irving) Cc: sip-implementors@lists.cs.columbia.edu Subject: Re: [Sip-implementors] What parameter change to generate authorizationstring? Regarding MD5_A1Str, shouldn't it be MD5_A1Str := CRYPT_MD5 (UserMD5 & ":" & RealmStr & ":" & Secret, FMT_LOWERCASE); instead? On Mon, Jan 24, 2011 at 5:30 PM, Pavesi, Valdemar (NSN - US/Irving) <valdemar.pav...@nsn.com> wrote: Hello, See the MD5_A2Str where you must specify the request ( REGISER ,INVITE ,BYE) A) CRYPT_MD5 MD5_A1Str := CRYPT_MD5 (UserMD5 & ":" & RealmStr & ":" & UserMD5, FMT_LOWERCASE); MD5_A2Str := CRYPT_MD5 ("REGISTER:" & UriStr, FMT_LOWERCASE); MD5_ResponseStr := CRYPT_MD5 ( MD5_A1Str & ":" & NonceStr & ":" & NcStr & ":" & CnonceStr & ":" & QopStr & ":" & MD5_A2Str , FMT_LOWERCASE); B) insert the header authorization Authorization := "Digest response=" & QUOTE & MD5_ResponseStr & QUOTE & ",nc=" & NcStr & ",username=" & QUOTE & UserMD5 & QUOTE & ",realm=" & QUOTE & RealmStr & QUOTE & ",nonce=" & QUOTE & NonceStr & QUOTE & ",algorithm=MD5" & ",qop=" & QopStr & ",cnonce=" & QUOTE & CnonceStr & QUOTE & ",uri=" & QUOTE & UriStr & QUOTE; Regards! Valdemar -----Original Message----- From: sip-implementors-boun...@lists.cs.columbia.edu [mailto:sip-implementors-boun...@lists.cs.columbia.edu] On Behalf Of ext Wyne Wolf Sent: Monday, January 24, 2011 2:52 PM To: sip-implementors@lists.cs.columbia.edu Subject: [Sip-implementors] What parameter change to generate authorizationstring? Hi, I successfully generate 'Authorization' string for the invite and the server returns 200 OK for the invite. However, I got "Bad Request" responds from the server when sending the BYE method with the same 'Authorization' string from the 'Invite'. Which parameter in the 'Authorization' string do I have to change to get the 'BYE' method to be accepted? Thnx a million. _______________________________________________ Sip-implementors mailing list Sip-implementors@lists.cs.columbia.edu https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors _______________________________________________ Sip-implementors mailing list Sip-implementors@lists.cs.columbia.edu https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors