[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sip-implementors
Subject:    Re: [Sip-implementors] What parameter change to generate authorizationstring?
From:       Wyne Wolf <sip.wwo () gmail ! com>
Date:       2011-01-25 15:02:33
Message-ID: AANLkTi=7Q46u8CquFtri4w_h=CJSONHUWsNDYN=MWZFb () mail ! gmail ! com
[Download RAW message or body]

Yes. You are correct. If you are doing your own scheme, you can change it.




On Tue, Jan 25, 2011 at 9:24 AM, Pavesi, Valdemar (NSN - US/Irving) <
valdemar.pavesi@nsn.com> wrote:

>   yes, for me the secret is equal  UserMD5.
>
>  ------------------------------
>  *From:* ext Wyne Wolf [mailto:sip.wwo@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.pavesi@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-bounces@lists.cs.columbia.edu
>> [mailto:sip-implementors-bounces@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
>>
>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic