<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=SV link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi again,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes, we tried almost that (as we don’t receive a cnonce nor
nonce-count in the 401 from Linksys, we only get the qop=”auth”
which actually by the RFC forces us to use your suggested longer response code.).<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>We did try with an empty cnonce and nonce count= “nc=00000001”
(or empty).<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Without success.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>/Matti<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Sergio Gutierrez [mailto:saguti@gmail.com] <br>
<b>Sent:</b> den 13 maj 2009 17:16<br>
<b>To:</b> Bogdan-Andrei Iancu<br>
<b>Cc:</b> Matti Zemack; users@lists.opensips.org<br>
<b>Subject:</b> Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Hi Bogdan.<br>
<br>
For our particular need, it looks like we need to send the response in a more
complex way:<br>
<br>
response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)<br>
<br>
Could you give us any hint about nonceCount and clientNonce parameters? Documentation
is not very clear.<br>
<br>
Thanks and regards.<br>
<br>
Sergio.<o:p></o:p></p>
<div>
<p class=MsoNormal>On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu <<a
href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>> wrote:<o:p></o:p></p>
<p class=MsoNormal>Hi Matti,<br>
<br>
Actually it is SIP auth, so digest auth (RFC 2617)<br>
Shortly:<br>
HA1=MD5( auth_usernam ":" realm ":" passwd )<br>
<br>
HA2=MD5( method ":" ruri )<br>
<br>
response=MD5( HA1 ":" nonce ":" HA2)<o:p></o:p></p>
<div>
<div>
<p class=MsoNormal><br>
Regards,<br>
Bogdan<br>
<br>
Matti Zemack wrote:<br>
> Hi again,<br>
><br>
> First of all; Thanks Bogdan!<br>
> Your tip works (theoretically) fine.<br>
> But, I just can't find a way of calculating the PAP2s authentication.<br>
> Not much seems to be documented.<br>
> Does anyone have any hints regarding Linksys authentication (for a<br>
> reboot at least).<br>
><br>
> I've tried calculating using<br>
> <a href="http://en.wikipedia.org/wiki/Digest_access_authentication"
target="_blank">http://en.wikipedia.org/wiki/Digest_access_authentication</a> ,
and<br>
> basically sticking to RFC2069, as I don't believe I have have nonceCount<br>
> & clientNonce.<br>
> By the way; how should the digestURI look? (I've tried the combinations<br>
> that came to my mind...)<br>
><br>
> Best regards,<br>
> Matti Zemack, Stockholm, Sweden<br>
><br>
> -----Original Message-----<br>
> From: Bogdan-Andrei Iancu [mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>]<br>
> Sent: den 12 maj 2009 10:33<br>
> To: Matti Zemack<br>
> Cc: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS<br>
><br>
> Hi Matti,<br>
><br>
> Well, it should be possible - you do a 2 steps interaction with the<br>
> Linkys :<br>
> - first send the NOTIFY via the t_uac_dlg MI command and get from the<br>
> result the auth challenge (in the MI command response you do have access<br>
><br>
> to the SIP reply)<br>
> - generate a new NOTIFY request including the Authorize header<br>
> calculated based on the received challenge.<br>
><br>
> Regards,<br>
> Bogdan<br>
><br>
> Matti Zemack wrote:<br>
><br>
>> Hi all,<br>
>><br>
>> I'm still dipping my toes in deep waters with OpenSips 1.5...<br>
>><br>
>> And I've come across a small problem. I would like to reboot Linksys<br>
>> ATA (PAP2 etc...) using OpenSIPS.<br>
>><br>
>> Can this maybe be done?<br>
>><br>
>> Basically I use XML-RPC FIFO to send the SIP command. The problem is<br>
>> that Linksys replies with 401 challenge. Can I, or is it at all<br>
>> possible to reply to this challenge using OpenSIPS?<br>
>><br>
>><br>
><br>
><br>
><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></p>
</div>
</div>
</div>
<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
Sergio Gutiérrez<o:p></o:p></p>
</div>
</body>
</html>