[Asterisk-Dev] Don't kick my ass, please help...

Alex Zeffertt ajz at cambridgebroadband.com
Tue Sep 28 03:05:14 MST 2004


I can't help without knowing your secret :-)
Send it and I'll show you what linphone puts in its md5sum.

Alex


On Mon, 27 Sep 2004 02:18:40 -0400
"Jan Hulala" <hulala at xodatel.com> wrote:

> Please help mi with my MD5-ing... :(((
> 
> What wrong is in my response calculation (see below)...?
> 
> Thanks,
> Jan
> 
> 
> ---------------------------------------------------------------------
> -----------
> 
> 
> SIP message from server:
> 
>       SIP/2.0 407 Proxy Authentication Required
>       .
>       .
>       .
>       Proxy-Authenticate: Digest realm="asterisk", nonce="3594843a"
>       Content-Length: 0
> 
> 
> Perl script for calculation REGISTER reponse:
> 
>       $md5 = Digest::MD5->new;
>       $md5->add($username, ':', $realm, ':', $password);
>       $HXA = $md5->hexdigest;
> 
>       $md5 = Digest::MD5->new;
>       $md5->add('md5', ':');
>       $HXB = $md5->hexdigest;
> 
>       $md5 = Digest::MD5->new;
>       $md5->add($HXA, ':', $nonce, ':', $HXB);
>       $response = $md5->hexdigest;
> 
>  ---> Proxy-Authorization: Digest realm="asterisk", nonce="3594843a",
>         username="XXXXXXXXX", algorithm="md5",
>         response="cd8b4824f70bfdd6b686f9abd851cf3b"
> 
> 
> SIP response message:
> 
>       SIP/2.0 401 Unauthorized
>       .
>       .
>       .
>       Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
>       Content-Length: 0
> 
> 


-- 
Alex Zeffertt
Software Engineer
Cambridge Broadband Ltd.
http://www.cambridgebroadband.com



More information about the asterisk-dev mailing list