<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2737.800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New" size=2>Please help mi with my MD5-ing...
:(((</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2>What wrong is in my response calculation
(see below)...?</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Thanks,</FONT></DIV>
<DIV><FONT face="Courier New" size=2>Jan</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>
<HR>
</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><STRONG>SIP message from
server:</STRONG></FONT></DIV>
<DIV><FONT size=2><BR><FONT face="Courier New">
SIP/2.0 407 Proxy Authentication Required<BR>
.<BR> .<BR>
.<BR> Proxy-Authenticate: Digest realm="asterisk",
nonce="3594843a"<BR> Content-Length:
0</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><BR><STRONG><FONT face="Courier New">Perl script for calculation REGISTER
reponse:</FONT></STRONG></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New"> $md5 =
Digest::MD5->new;<BR> $md5->add($username,
':', $realm, ':', $password);<BR> $HXA =
$md5->hexdigest;</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New"> $md5 =
Digest::MD5->new;<BR> $md5->add('md5',
':');<BR> $HXB = $md5->hexdigest;</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New"> $md5 =
Digest::MD5->new;<BR> $md5->add($HXA, ':',
$nonce, ':', $HXB);<BR> $response =
$md5->hexdigest;<BR></FONT></DIV>
<DIV><FONT face="Courier New"> ---> Proxy-Authorization: Digest
realm="asterisk",
nonce="3594843a",<BR>
username="XXXXXXXXX", algorithm="md5",
response="cd8b4824f70bfdd6b686f9abd851cf3b"</FONT></DIV></FONT>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT size=2>
<DIV><FONT face="Courier New" size=2><STRONG>SIP response
message:</STRONG></FONT></DIV><FONT size=2>
<DIV><BR><FONT face="Courier New">
</FONT></FONT><FONT face="Courier New">SIP/2.0 401 Unauthorized</FONT></DIV>
<DIV><FONT face="Courier New"> .</FONT></DIV>
<DIV><FONT face="Courier New"> .</FONT></DIV>
<DIV><FONT face="Courier New"> .</FONT></DIV>
<DIV><FONT face="Courier New"> Allow: INVITE, ACK,
CANCEL, OPTIONS, BYE, REFER<BR> Content-Length:
0</FONT></DIV>
<DIV><FONT face="Courier New"></FONT></FONT> </DIV></DIV></BODY></HTML>