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

Dinesh Nair dinesh at alphaque.com
Tue Sep 28 09:42:03 MST 2004


On 27/09/2004 14:18 Jan Hulala said the following:
> *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;

$HXB should be the md5 hash of 'REGISTER:$uri' where $uri is your SIP uri 
which you're sending out.

-- 
Regards,                           /\_/\   "All dogs go to heaven."
dinesh at alphaque.com                (0 0)    http://www.alphaque.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+



More information about the asterisk-dev mailing list