Hi Chris.<br><br>Thanks a lot for your post. You made my day :-)<br><br>It works great.<br><br>Best regards.<br><br>Sergio.<br><br><div class="gmail_quote">On Wed, May 13, 2009 at 1:21 PM, Chris Maciejewski <span dir="ltr"><<a href="mailto:chris@wima.co.uk">chris@wima.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
You can find a PhpSIP UA I wrote some time ago, which can be used to<br>
send a NOTIFY to resync/reboot Linksys phone. It is far from being a<br>
complete SIP UA (no transactions matching etc.), but I am using it all<br>
the time to send NOTIFY, or INVITE, REFER for Click 2 Call from my web<br>
application (PHP based) and it works well.<br>
<br>
<a href="http://wima.co.uk/PhpSIP/" target="_blank">http://wima.co.uk/PhpSIP/</a><br>
<br>
Also you will find two functions auth() and authWWW() which calculate<br>
Digest and WWW responses.<br>
<br>
Regards,<br>
Chris<br>
<br>
<br>
2009/5/13 Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>:<br>
<div><div></div><div class="h5">> Matti,<br>
><br>
> you should read more about digest auth in the RFC -<br>
> <a href="http://www.ietf.org/rfc/rfc2617.txt" target="_blank">http://www.ietf.org/rfc/rfc2617.txt</a><br>
><br>
> Regards,<br>
> Bogdan<br>
><br>
> Matti Zemack wrote:<br>
>> Hi,<br>
>><br>
>> Thanks again Bogdan. Tried that. Still no go. Suppose I'll try to get some help from Linksys people.<br>
>><br>
>> /Matti<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 13 maj 2009 17:46<br>
>> To: Matti Zemack<br>
>> Cc: Sergio Gutierrez; <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
>> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS<br>
>><br>
>> With qop, do :<br>
>><br>
>> response=MD5( HA1 ":" nonce ":" nc ":" cnonce ":" qop ":" HA2)<br>
>><br>
>> Regards,<br>
>> Bogdan<br>
>><br>
>> Matti Zemack wrote:<br>
>><br>
>>> Hi again,<br>
>>><br>
>>> Yes, we tried almost that (as we don't receive a cnonce nor<br>
>>> nonce-count in the 401 from Linksys, we only get the qop="auth" which<br>
>>> actually by the RFC forces us to use your suggested longer response<br>
>>> code.).<br>
>>><br>
>>> We did try with an empty cnonce and nonce count= "nc=00000001" (or empty).<br>
>>><br>
>>> Without success.<br>
>>><br>
>>> /Matti<br>
>>><br>
>>> *From:* Sergio Gutierrez [mailto:<a href="mailto:saguti@gmail.com">saguti@gmail.com</a>]<br>
>>> *Sent:* den 13 maj 2009 17:16<br>
>>> *To:* Bogdan-Andrei Iancu<br>
>>> *Cc:* Matti Zemack; <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 Bogdan.<br>
>>><br>
>>> For our particular need, it looks like we need to send the response in<br>
>>> 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<br>
>>> parameters? Documentation is not very clear.<br>
>>><br>
>>> Thanks and regards.<br>
>>><br>
>>> Sergio.<br>
>>><br>
>>> On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu<br>
>>> <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>> wrote:<br>
>>><br>
>>> 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)<br>
>>><br>
>>><br>
>>> Regards,<br>
>>> Bogdan<br>
>>><br>
>>> Matti Zemack wrote:<br>
>>><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>
>>>><br>
>>> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>]<br>
>>><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> <mailto:<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>
>>>><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>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<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><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Sergio Gutiérrez<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>
</div></div><div class="im">> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
</div><div class="im">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
</div><div><div></div><div class="h5"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sergio Gutiérrez<br>