Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-18 Thread Bogdan-Andrei Iancu
OK, done - see http://www.opensips.org/Resources/DocsTools#toc11

Regards,
Bogdan

Chris Maciejewski wrote:
> Hi Bogdan,
>
> Yes, sure. No problem at all.
>
> Best regards,
> Chris
>
>
> 2009/5/14 Bogdan-Andrei Iancu :
>   
>> Hi Chris,
>>
>> Can I link your tool from the opensips tools web page -
>> http://www.opensips.org/Resources/DocsTools   ?
>>
>> Thanks and regards,
>> Bogdan
>>
>> Chris Maciejewski wrote:
>> 
>>> Hi,
>>>
>>> You can find a PhpSIP UA I wrote some time ago, which can be used to
>>> send a NOTIFY to resync/reboot Linksys phone. It is far from being a
>>> complete SIP UA (no transactions matching etc.), but I am using it all
>>> the time to send NOTIFY, or INVITE, REFER for Click 2 Call from my web
>>> application (PHP based) and it works well.
>>>
>>> http://wima.co.uk/PhpSIP/
>>>
>>> Also you will find two functions auth() and authWWW() which calculate
>>> Digest and WWW responses.
>>>
>>> Regards,
>>> Chris
>>>
>>>
>>> 2009/5/13 Bogdan-Andrei Iancu :
>>>
>>>   
>>>> Matti,
>>>>
>>>> you should read more about digest auth in the RFC -
>>>> http://www.ietf.org/rfc/rfc2617.txt
>>>>
>>>> Regards,
>>>> Bogdan
>>>>
>>>> Matti Zemack wrote:
>>>>
>>>>     
>>>>> Hi,
>>>>>
>>>>> Thanks again Bogdan. Tried that. Still no go. Suppose I'll try to get
>>>>> some help from Linksys people.
>>>>>
>>>>> /Matti
>>>>>
>>>>> -Original Message-
>>>>> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro]
>>>>> Sent: den 13 maj 2009 17:46
>>>>> To: Matti Zemack
>>>>> Cc: Sergio Gutierrez; users@lists.opensips.org
>>>>> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>>>>
>>>>> With qop, do :
>>>>>
>>>>> response=MD5( HA1 ":" nonce ":" nc ":" cnonce ":" qop ":" HA2)
>>>>>
>>>>> Regards,
>>>>> Bogdan
>>>>>
>>>>> Matti Zemack wrote:
>>>>>
>>>>>
>>>>>   
>>>>>> Hi again,
>>>>>>
>>>>>> 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.).
>>>>>>
>>>>>> We did try with an empty cnonce and nonce count= "nc=0001" (or
>>>>>> empty).
>>>>>>
>>>>>> Without success.
>>>>>>
>>>>>> /Matti
>>>>>>
>>>>>> *From:* Sergio Gutierrez [mailto:sag...@gmail.com]
>>>>>> *Sent:* den 13 maj 2009 17:16
>>>>>> *To:* Bogdan-Andrei Iancu
>>>>>> *Cc:* Matti Zemack; users@lists.opensips.org
>>>>>> *Subject:* Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>>>>>
>>>>>> Hi Bogdan.
>>>>>>
>>>>>> For our particular need, it looks like we need to send the response in
>>>>>> a more complex way:
>>>>>>
>>>>>> response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)
>>>>>>
>>>>>> Could you give us any hint about nonceCount and clientNonce
>>>>>> parameters? Documentation is not very clear.
>>>>>>
>>>>>> Thanks and regards.
>>>>>>
>>>>>> Sergio.
>>>>>>
>>>>>> On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu
>>>>>> mailto:bog...@voice-system.ro>> wrote:
>>>>>>
>>>>>> Hi Matti,
>>>>>>
>>>>>> Actually it is SIP auth, so digest auth (RFC 2617)
>>>>>> Shortly:
>>>>>> HA1=MD5( auth_usernam ":" realm ":" passwd )
>>>>>>
>>>>>> HA2=MD5( method ":" ruri )
>>>>>>
>>>>>> response=MD5( HA1 ":" nonce ":" H

Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-14 Thread Matti Zemack
Thanks Chris!

I finally found what we were doing wrong trying to reboot a Linksys
using opensips XML-RPC t_uac_dlg. Thanks to your code and Bogdans help.
It came down to CSeq numbering, that I forgot incrementing.

Regards,
Matti Zemack, Stockholm, Sweden


Message: 2
Date: Wed, 13 May 2009 19:21:09 +0100
From: Chris Maciejewski 
Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
To: users@lists.opensips.org
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

Hi,

You can find a PhpSIP UA I wrote some time ago, which can be used to
send a NOTIFY to resync/reboot Linksys phone. It is far from being a
complete SIP UA (no transactions matching etc.), but I am using it all
the time to send NOTIFY, or INVITE, REFER for Click 2 Call from my web
application (PHP based) and it works well.

http://wima.co.uk/PhpSIP/

Also you will find two functions auth() and authWWW() which calculate
Digest and WWW responses.

Regards,
Chris



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-14 Thread Chris Maciejewski
Hi Bogdan,

Yes, sure. No problem at all.

Best regards,
Chris


2009/5/14 Bogdan-Andrei Iancu :
> Hi Chris,
>
> Can I link your tool from the opensips tools web page -
> http://www.opensips.org/Resources/DocsTools   ?
>
> Thanks and regards,
> Bogdan
>
> Chris Maciejewski wrote:
>>
>> Hi,
>>
>> You can find a PhpSIP UA I wrote some time ago, which can be used to
>> send a NOTIFY to resync/reboot Linksys phone. It is far from being a
>> complete SIP UA (no transactions matching etc.), but I am using it all
>> the time to send NOTIFY, or INVITE, REFER for Click 2 Call from my web
>> application (PHP based) and it works well.
>>
>> http://wima.co.uk/PhpSIP/
>>
>> Also you will find two functions auth() and authWWW() which calculate
>> Digest and WWW responses.
>>
>> Regards,
>> Chris
>>
>>
>> 2009/5/13 Bogdan-Andrei Iancu :
>>
>>>
>>> Matti,
>>>
>>> you should read more about digest auth in the RFC -
>>> http://www.ietf.org/rfc/rfc2617.txt
>>>
>>> Regards,
>>> Bogdan
>>>
>>> Matti Zemack wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> Thanks again Bogdan. Tried that. Still no go. Suppose I'll try to get
>>>> some help from Linksys people.
>>>>
>>>> /Matti
>>>>
>>>> -Original Message-
>>>> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro]
>>>> Sent: den 13 maj 2009 17:46
>>>> To: Matti Zemack
>>>> Cc: Sergio Gutierrez; users@lists.opensips.org
>>>> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>>>
>>>> With qop, do :
>>>>
>>>> response=MD5( HA1 ":" nonce ":" nc ":" cnonce ":" qop ":" HA2)
>>>>
>>>> Regards,
>>>> Bogdan
>>>>
>>>> Matti Zemack wrote:
>>>>
>>>>
>>>>>
>>>>> Hi again,
>>>>>
>>>>> 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.).
>>>>>
>>>>> We did try with an empty cnonce and nonce count= "nc=0001" (or
>>>>> empty).
>>>>>
>>>>> Without success.
>>>>>
>>>>> /Matti
>>>>>
>>>>> *From:* Sergio Gutierrez [mailto:sag...@gmail.com]
>>>>> *Sent:* den 13 maj 2009 17:16
>>>>> *To:* Bogdan-Andrei Iancu
>>>>> *Cc:* Matti Zemack; users@lists.opensips.org
>>>>> *Subject:* Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>>>>
>>>>> Hi Bogdan.
>>>>>
>>>>> For our particular need, it looks like we need to send the response in
>>>>> a more complex way:
>>>>>
>>>>> response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)
>>>>>
>>>>> Could you give us any hint about nonceCount and clientNonce
>>>>> parameters? Documentation is not very clear.
>>>>>
>>>>> Thanks and regards.
>>>>>
>>>>> Sergio.
>>>>>
>>>>> On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu
>>>>> mailto:bog...@voice-system.ro>> wrote:
>>>>>
>>>>> Hi Matti,
>>>>>
>>>>> Actually it is SIP auth, so digest auth (RFC 2617)
>>>>> Shortly:
>>>>> HA1=MD5( auth_usernam ":" realm ":" passwd )
>>>>>
>>>>> HA2=MD5( method ":" ruri )
>>>>>
>>>>> response=MD5( HA1 ":" nonce ":" HA2)
>>>>>
>>>>>
>>>>> Regards,
>>>>> Bogdan
>>>>>
>>>>> Matti Zemack wrote:
>>>>>
>>>>>
>>>>>>
>>>>>> Hi again,
>>>>>>
>>>>>> First of all; Thanks Bogdan!
>>>>>> Your tip works (theoretically) fine.
>>>>>> But, I just can't find a way of calculating the PAP2s authentication.
>>>>>> Not much seems to be documented.
>>>>>> Does anyone have any hints r

Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Bogdan-Andrei Iancu
Hi Chris,

Can I link your tool from the opensips tools web page - 
http://www.opensips.org/Resources/DocsTools   ?

Thanks and regards,
Bogdan

Chris Maciejewski wrote:
> Hi,
>
> You can find a PhpSIP UA I wrote some time ago, which can be used to
> send a NOTIFY to resync/reboot Linksys phone. It is far from being a
> complete SIP UA (no transactions matching etc.), but I am using it all
> the time to send NOTIFY, or INVITE, REFER for Click 2 Call from my web
> application (PHP based) and it works well.
>
> http://wima.co.uk/PhpSIP/
>
> Also you will find two functions auth() and authWWW() which calculate
> Digest and WWW responses.
>
> Regards,
> Chris
>
>
> 2009/5/13 Bogdan-Andrei Iancu :
>   
>> Matti,
>>
>> you should read more about digest auth in the RFC -
>> http://www.ietf.org/rfc/rfc2617.txt
>>
>> Regards,
>> Bogdan
>>
>> Matti Zemack wrote:
>> 
>>> Hi,
>>>
>>> Thanks again Bogdan. Tried that. Still no go. Suppose I'll try to get some 
>>> help from Linksys people.
>>>
>>> /Matti
>>>
>>> -Original Message-
>>> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro]
>>> Sent: den 13 maj 2009 17:46
>>> To: Matti Zemack
>>> Cc: Sergio Gutierrez; users@lists.opensips.org
>>> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>>
>>> With qop, do :
>>>
>>> response=MD5( HA1 ":" nonce ":" nc ":" cnonce ":" qop ":" HA2)
>>>
>>> Regards,
>>> Bogdan
>>>
>>> Matti Zemack wrote:
>>>
>>>   
>>>> Hi again,
>>>>
>>>> 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.).
>>>>
>>>> We did try with an empty cnonce and nonce count= "nc=0001" (or empty).
>>>>
>>>> Without success.
>>>>
>>>> /Matti
>>>>
>>>> *From:* Sergio Gutierrez [mailto:sag...@gmail.com]
>>>> *Sent:* den 13 maj 2009 17:16
>>>> *To:* Bogdan-Andrei Iancu
>>>> *Cc:* Matti Zemack; users@lists.opensips.org
>>>> *Subject:* Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>>>
>>>> Hi Bogdan.
>>>>
>>>> For our particular need, it looks like we need to send the response in
>>>> a more complex way:
>>>>
>>>> response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)
>>>>
>>>> Could you give us any hint about nonceCount and clientNonce
>>>> parameters? Documentation is not very clear.
>>>>
>>>> Thanks and regards.
>>>>
>>>> Sergio.
>>>>
>>>> On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu
>>>> mailto:bog...@voice-system.ro>> wrote:
>>>>
>>>> Hi Matti,
>>>>
>>>> Actually it is SIP auth, so digest auth (RFC 2617)
>>>> Shortly:
>>>> HA1=MD5( auth_usernam ":" realm ":" passwd )
>>>>
>>>> HA2=MD5( method ":" ruri )
>>>>
>>>> response=MD5( HA1 ":" nonce ":" HA2)
>>>>
>>>>
>>>> Regards,
>>>> Bogdan
>>>>
>>>> Matti Zemack wrote:
>>>>
>>>> 
>>>>> Hi again,
>>>>>
>>>>> First of all; Thanks Bogdan!
>>>>> Your tip works (theoretically) fine.
>>>>> But, I just can't find a way of calculating the PAP2s authentication.
>>>>> Not much seems to be documented.
>>>>> Does anyone have any hints regarding Linksys authentication (for a
>>>>> reboot at least).
>>>>>
>>>>> I've tried calculating using
>>>>> http://en.wikipedia.org/wiki/Digest_access_authentication , and
>>>>> basically sticking to RFC2069, as I don't believe I have have nonceCount
>>>>> & clientNonce.
>>>>> By the way; how should the digestURI look? (I've tried the combinations
>>>>> that came to my mind...)
>>>>>
>>>>> Best regards,
>>>>

Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Sergio Gutierrez
Hi Chris.

Thanks a lot for your post. You made my day :-)

It works great.

Best regards.

Sergio.

On Wed, May 13, 2009 at 1:21 PM, Chris Maciejewski  wrote:

> Hi,
>
> You can find a PhpSIP UA I wrote some time ago, which can be used to
> send a NOTIFY to resync/reboot Linksys phone. It is far from being a
> complete SIP UA (no transactions matching etc.), but I am using it all
> the time to send NOTIFY, or INVITE, REFER for Click 2 Call from my web
> application (PHP based) and it works well.
>
> http://wima.co.uk/PhpSIP/
>
> Also you will find two functions auth() and authWWW() which calculate
> Digest and WWW responses.
>
> Regards,
> Chris
>
>
> 2009/5/13 Bogdan-Andrei Iancu :
> > Matti,
> >
> > you should read more about digest auth in the RFC -
> > http://www.ietf.org/rfc/rfc2617.txt
> >
> > Regards,
> > Bogdan
> >
> > Matti Zemack wrote:
> >> Hi,
> >>
> >> Thanks again Bogdan. Tried that. Still no go. Suppose I'll try to get
> some help from Linksys people.
> >>
> >> /Matti
> >>
> >> -Original Message-
> >> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro]
> >> Sent: den 13 maj 2009 17:46
> >> To: Matti Zemack
> >> Cc: Sergio Gutierrez; users@lists.opensips.org
> >> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
> >>
> >> With qop, do :
> >>
> >> response=MD5( HA1 ":" nonce ":" nc ":" cnonce ":" qop ":" HA2)
> >>
> >> Regards,
> >> Bogdan
> >>
> >> Matti Zemack wrote:
> >>
> >>> Hi again,
> >>>
> >>> 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.).
> >>>
> >>> We did try with an empty cnonce and nonce count= "nc=0001" (or
> empty).
> >>>
> >>> Without success.
> >>>
> >>> /Matti
> >>>
> >>> *From:* Sergio Gutierrez [mailto:sag...@gmail.com]
> >>> *Sent:* den 13 maj 2009 17:16
> >>> *To:* Bogdan-Andrei Iancu
> >>> *Cc:* Matti Zemack; users@lists.opensips.org
> >>> *Subject:* Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
> >>>
> >>> Hi Bogdan.
> >>>
> >>> For our particular need, it looks like we need to send the response in
> >>> a more complex way:
> >>>
> >>> response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)
> >>>
> >>> Could you give us any hint about nonceCount and clientNonce
> >>> parameters? Documentation is not very clear.
> >>>
> >>> Thanks and regards.
> >>>
> >>> Sergio.
> >>>
> >>> On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu
> >>> mailto:bog...@voice-system.ro>> wrote:
> >>>
> >>> Hi Matti,
> >>>
> >>> Actually it is SIP auth, so digest auth (RFC 2617)
> >>> Shortly:
> >>> HA1=MD5( auth_usernam ":" realm ":" passwd )
> >>>
> >>> HA2=MD5( method ":" ruri )
> >>>
> >>> response=MD5( HA1 ":" nonce ":" HA2)
> >>>
> >>>
> >>> Regards,
> >>> Bogdan
> >>>
> >>> Matti Zemack wrote:
> >>>
> >>>> Hi again,
> >>>>
> >>>> First of all; Thanks Bogdan!
> >>>> Your tip works (theoretically) fine.
> >>>> But, I just can't find a way of calculating the PAP2s authentication.
> >>>> Not much seems to be documented.
> >>>> Does anyone have any hints regarding Linksys authentication (for a
> >>>> reboot at least).
> >>>>
> >>>> I've tried calculating using
> >>>> http://en.wikipedia.org/wiki/Digest_access_authentication , and
> >>>> basically sticking to RFC2069, as I don't believe I have have
> nonceCount
> >>>> & clientNonce.
> >>>> By the way; how should the digestURI look? (I've tried the
> combinations
> >>>> that came to my mind...)
> >>>>
> >>>> Best regards,
> >>>> Matti Zemack, S

Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Chris Maciejewski
Hi,

You can find a PhpSIP UA I wrote some time ago, which can be used to
send a NOTIFY to resync/reboot Linksys phone. It is far from being a
complete SIP UA (no transactions matching etc.), but I am using it all
the time to send NOTIFY, or INVITE, REFER for Click 2 Call from my web
application (PHP based) and it works well.

http://wima.co.uk/PhpSIP/

Also you will find two functions auth() and authWWW() which calculate
Digest and WWW responses.

Regards,
Chris


2009/5/13 Bogdan-Andrei Iancu :
> Matti,
>
> you should read more about digest auth in the RFC -
> http://www.ietf.org/rfc/rfc2617.txt
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
>> Hi,
>>
>> Thanks again Bogdan. Tried that. Still no go. Suppose I'll try to get some 
>> help from Linksys people.
>>
>> /Matti
>>
>> -Original Message-
>> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro]
>> Sent: den 13 maj 2009 17:46
>> To: Matti Zemack
>> Cc: Sergio Gutierrez; users@lists.opensips.org
>> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>
>> With qop, do :
>>
>> response=MD5( HA1 ":" nonce ":" nc ":" cnonce ":" qop ":" HA2)
>>
>> Regards,
>> Bogdan
>>
>> Matti Zemack wrote:
>>
>>> Hi again,
>>>
>>> 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.).
>>>
>>> We did try with an empty cnonce and nonce count= "nc=0001" (or empty).
>>>
>>> Without success.
>>>
>>> /Matti
>>>
>>> *From:* Sergio Gutierrez [mailto:sag...@gmail.com]
>>> *Sent:* den 13 maj 2009 17:16
>>> *To:* Bogdan-Andrei Iancu
>>> *Cc:* Matti Zemack; users@lists.opensips.org
>>> *Subject:* Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>>
>>> Hi Bogdan.
>>>
>>> For our particular need, it looks like we need to send the response in
>>> a more complex way:
>>>
>>> response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)
>>>
>>> Could you give us any hint about nonceCount and clientNonce
>>> parameters? Documentation is not very clear.
>>>
>>> Thanks and regards.
>>>
>>> Sergio.
>>>
>>> On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu
>>> mailto:bog...@voice-system.ro>> wrote:
>>>
>>> Hi Matti,
>>>
>>> Actually it is SIP auth, so digest auth (RFC 2617)
>>> Shortly:
>>> HA1=MD5( auth_usernam ":" realm ":" passwd )
>>>
>>> HA2=MD5( method ":" ruri )
>>>
>>> response=MD5( HA1 ":" nonce ":" HA2)
>>>
>>>
>>> Regards,
>>> Bogdan
>>>
>>> Matti Zemack wrote:
>>>
>>>> Hi again,
>>>>
>>>> First of all; Thanks Bogdan!
>>>> Your tip works (theoretically) fine.
>>>> But, I just can't find a way of calculating the PAP2s authentication.
>>>> Not much seems to be documented.
>>>> Does anyone have any hints regarding Linksys authentication (for a
>>>> reboot at least).
>>>>
>>>> I've tried calculating using
>>>> http://en.wikipedia.org/wiki/Digest_access_authentication , and
>>>> basically sticking to RFC2069, as I don't believe I have have nonceCount
>>>> & clientNonce.
>>>> By the way; how should the digestURI look? (I've tried the combinations
>>>> that came to my mind...)
>>>>
>>>> Best regards,
>>>> Matti Zemack, Stockholm, Sweden
>>>>
>>>> -Original Message-
>>>> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro
>>>>
>>> <mailto:bog...@voice-system.ro>]
>>>
>>>> Sent: den 12 maj 2009 10:33
>>>> To: Matti Zemack
>>>> Cc: users@lists.opensips.org <mailto:users@lists.opensips.org>
>>>> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>>>
>>>> Hi Matti,
>>>>
>>>> Well, it should be possible - you do a 2 steps interaction with the
>>>> Linkys :
>>>> - first send the NOTIFY via the t_uac_dlg MI command and get from the
>>>> result the auth challenge (in

Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Bogdan-Andrei Iancu
Matti,

you should read more about digest auth in the RFC - 
http://www.ietf.org/rfc/rfc2617.txt

Regards,
Bogdan

Matti Zemack wrote:
> Hi,
>
> Thanks again Bogdan. Tried that. Still no go. Suppose I'll try to get some 
> help from Linksys people.
>
> /Matti
>
> -Original Message-
> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro] 
> Sent: den 13 maj 2009 17:46
> To: Matti Zemack
> Cc: Sergio Gutierrez; users@lists.opensips.org
> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>
> With qop, do :
>
> response=MD5( HA1 ":" nonce ":" nc ":" cnonce ":" qop ":" HA2)
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
>   
>> Hi again,
>>
>> 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.).
>>
>> We did try with an empty cnonce and nonce count= "nc=0001" (or empty).
>>
>> Without success.
>>
>> /Matti
>>
>> *From:* Sergio Gutierrez [mailto:sag...@gmail.com]
>> *Sent:* den 13 maj 2009 17:16
>> *To:* Bogdan-Andrei Iancu
>> *Cc:* Matti Zemack; users@lists.opensips.org
>> *Subject:* Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>
>> Hi Bogdan.
>>
>> For our particular need, it looks like we need to send the response in 
>> a more complex way:
>>
>> response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)
>>
>> Could you give us any hint about nonceCount and clientNonce 
>> parameters? Documentation is not very clear.
>>
>> Thanks and regards.
>>
>> Sergio.
>>
>> On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu 
>> mailto:bog...@voice-system.ro>> wrote:
>>
>> Hi Matti,
>>
>> Actually it is SIP auth, so digest auth (RFC 2617)
>> Shortly:
>> HA1=MD5( auth_usernam ":" realm ":" passwd )
>>
>> HA2=MD5( method ":" ruri )
>>
>> response=MD5( HA1 ":" nonce ":" HA2)
>>
>>
>> Regards,
>> Bogdan
>>
>> Matti Zemack wrote:
>> 
>>> Hi again,
>>>
>>> First of all; Thanks Bogdan!
>>> Your tip works (theoretically) fine.
>>> But, I just can't find a way of calculating the PAP2s authentication.
>>> Not much seems to be documented.
>>> Does anyone have any hints regarding Linksys authentication (for a
>>> reboot at least).
>>>
>>> I've tried calculating using
>>> http://en.wikipedia.org/wiki/Digest_access_authentication , and
>>> basically sticking to RFC2069, as I don't believe I have have nonceCount
>>> & clientNonce.
>>> By the way; how should the digestURI look? (I've tried the combinations
>>> that came to my mind...)
>>>
>>> Best regards,
>>> Matti Zemack, Stockholm, Sweden
>>>
>>> -Original Message-
>>> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro 
>>>   
>> <mailto:bog...@voice-system.ro>]
>> 
>>> Sent: den 12 maj 2009 10:33
>>> To: Matti Zemack
>>> Cc: users@lists.opensips.org <mailto:users@lists.opensips.org>
>>> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>>
>>> Hi Matti,
>>>
>>> Well, it should be possible - you do a 2 steps interaction with the
>>> Linkys :
>>> - first send the NOTIFY via the t_uac_dlg MI command and get from the
>>> result the auth challenge (in the MI command response you do have access
>>>
>>> to the SIP reply)
>>> - generate a new NOTIFY request including the Authorize header
>>> calculated based on the received challenge.
>>>
>>> Regards,
>>> Bogdan
>>>
>>> Matti Zemack wrote:
>>>
>>>   
>>>> Hi all,
>>>>
>>>> I'm still dipping my toes in deep waters with OpenSips 1.5...
>>>>
>>>> And I've come across a small problem. I would like to reboot Linksys
>>>> ATA (PAP2 etc...) using OpenSIPS.
>>>>
>>>> Can this maybe be done?
>>>>
>>>> Basically I use XML-RPC FIFO to send the SIP command. The problem is
>>>> that Linksys replies with 401 challenge. Can I, or is it at all
>>>> possible to reply to this challenge using OpenSIPS?
>>>>
>>>>
>>>> 
>>>
>>>   
>> ___
>> Users mailing list
>> Users@lists.opensips.org <mailto:Users@lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>>
>> -- 
>> Sergio Gutiérrez
>>
>> 
>
>
>   


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Matti Zemack
Hi,

Thanks again Bogdan. Tried that. Still no go. Suppose I'll try to get some help 
from Linksys people.

/Matti

-Original Message-
From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro] 
Sent: den 13 maj 2009 17:46
To: Matti Zemack
Cc: Sergio Gutierrez; users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

With qop, do :

response=MD5( HA1 ":" nonce ":" nc ":" cnonce ":" qop ":" HA2)

Regards,
Bogdan

Matti Zemack wrote:
>
> Hi again,
>
> 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.).
>
> We did try with an empty cnonce and nonce count= "nc=0001" (or empty).
>
> Without success.
>
> /Matti
>
> *From:* Sergio Gutierrez [mailto:sag...@gmail.com]
> *Sent:* den 13 maj 2009 17:16
> *To:* Bogdan-Andrei Iancu
> *Cc:* Matti Zemack; users@lists.opensips.org
> *Subject:* Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>
> Hi Bogdan.
>
> For our particular need, it looks like we need to send the response in 
> a more complex way:
>
> response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)
>
> Could you give us any hint about nonceCount and clientNonce 
> parameters? Documentation is not very clear.
>
> Thanks and regards.
>
> Sergio.
>
> On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu 
> mailto:bog...@voice-system.ro>> wrote:
>
> Hi Matti,
>
> Actually it is SIP auth, so digest auth (RFC 2617)
> Shortly:
> HA1=MD5( auth_usernam ":" realm ":" passwd )
>
> HA2=MD5( method ":" ruri )
>
> response=MD5( HA1 ":" nonce ":" HA2)
>
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
> > Hi again,
> >
> > First of all; Thanks Bogdan!
> > Your tip works (theoretically) fine.
> > But, I just can't find a way of calculating the PAP2s authentication.
> > Not much seems to be documented.
> > Does anyone have any hints regarding Linksys authentication (for a
> > reboot at least).
> >
> > I've tried calculating using
> > http://en.wikipedia.org/wiki/Digest_access_authentication , and
> > basically sticking to RFC2069, as I don't believe I have have nonceCount
> > & clientNonce.
> > By the way; how should the digestURI look? (I've tried the combinations
> > that came to my mind...)
> >
> > Best regards,
> > Matti Zemack, Stockholm, Sweden
> >
> > -Original Message-
> > From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro 
> <mailto:bog...@voice-system.ro>]
> > Sent: den 12 maj 2009 10:33
> > To: Matti Zemack
> > Cc: users@lists.opensips.org <mailto:users@lists.opensips.org>
> > Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
> >
> > Hi Matti,
> >
> > Well, it should be possible - you do a 2 steps interaction with the
> > Linkys :
> > - first send the NOTIFY via the t_uac_dlg MI command and get from the
> > result the auth challenge (in the MI command response you do have access
> >
> > to the SIP reply)
> > - generate a new NOTIFY request including the Authorize header
> > calculated based on the received challenge.
> >
> > Regards,
> > Bogdan
> >
> > Matti Zemack wrote:
> >
> >> Hi all,
> >>
> >> I'm still dipping my toes in deep waters with OpenSips 1.5...
> >>
> >> And I've come across a small problem. I would like to reboot Linksys
> >> ATA (PAP2 etc...) using OpenSIPS.
> >>
> >> Can this maybe be done?
> >>
> >> Basically I use XML-RPC FIFO to send the SIP command. The problem is
> >> that Linksys replies with 401 challenge. Can I, or is it at all
> >> possible to reply to this challenge using OpenSIPS?
> >>
> >>
> >
> >
> >
>
>
> ___
> Users mailing list
> Users@lists.opensips.org <mailto:Users@lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> -- 
> Sergio Gutiérrez
>


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Bogdan-Andrei Iancu
Hi Sergio,

Right - if the server does ask for qop, that the final MD5 looks this 
way (see my other email to Matti).

Regards,
Bogdan

Sergio Gutierrez wrote:
> Hi Bogdan.
>
> For our particular need, it looks like we need to send the response in 
> a more complex way:
>
> response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)
>
> Could you give us any hint about nonceCount and clientNonce 
> parameters? Documentation is not very clear.
>
> Thanks and regards.
>
> Sergio.
>
> On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu 
> mailto:bog...@voice-system.ro>> wrote:
>
> Hi Matti,
>
> Actually it is SIP auth, so digest auth (RFC 2617)
> Shortly:
>HA1=MD5( auth_usernam ":" realm ":" passwd )
>
>HA2=MD5( method ":" ruri )
>
>response=MD5( HA1 ":" nonce ":"  HA2)
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
> > Hi again,
> >
> > First of all; Thanks Bogdan!
> > Your tip works (theoretically) fine.
> > But, I just can't find a way of calculating the PAP2s
> authentication.
> > Not much seems to be documented.
> > Does anyone have any hints regarding Linksys authentication (for a
> > reboot at least).
> >
> > I've tried calculating using
> > http://en.wikipedia.org/wiki/Digest_access_authentication , and
> > basically sticking to RFC2069, as I don't believe I have have
> nonceCount
> > & clientNonce.
> > By the way; how should the digestURI look? (I've tried the
> combinations
> > that came to my mind...)
> >
> > Best regards,
> > Matti Zemack, Stockholm, Sweden
> >
>     > -Original Message-
> > From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro
> <mailto:bog...@voice-system.ro>]
> > Sent: den 12 maj 2009 10:33
> > To: Matti Zemack
> > Cc: users@lists.opensips.org <mailto:users@lists.opensips.org>
> > Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
> >
> > Hi Matti,
> >
> > Well, it should be possible - you do a 2 steps interaction with the
> > Linkys :
> > - first send the NOTIFY via the t_uac_dlg MI command and get
> from the
> > result the auth challenge (in the MI command response you do
> have access
> >
> > to the SIP reply)
> > - generate a new NOTIFY request including the Authorize header
> > calculated based on the received challenge.
> >
> > Regards,
> > Bogdan
> >
> > Matti Zemack wrote:
> >
> >> Hi all,
> >>
> >> I'm still dipping my toes in deep waters with OpenSips 1.5...
> >>
> >> And I've come across a small problem. I would like to reboot
> Linksys
> >> ATA (PAP2 etc...) using OpenSIPS.
> >>
> >> Can this maybe be done?
> >>
> >> Basically I use XML-RPC FIFO to send the SIP command. The
> problem is
> >> that Linksys replies with 401 challenge. Can I, or is it at all
> >> possible to reply to this challenge using OpenSIPS?
> >>
> >>
> >
> >
> >
>
>
> ___
> Users mailing list
> Users@lists.opensips.org <mailto:Users@lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> -- 
> Sergio Gutiérrez


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Bogdan-Andrei Iancu
With qop, do :

response=MD5( HA1 ":" nonce ":" nc ":" cnonce ":" qop ":" HA2)

Regards,
Bogdan

Matti Zemack wrote:
>
> Hi again,
>
> 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.).
>
> We did try with an empty cnonce and nonce count= “nc=0001” (or empty).
>
> Without success.
>
> /Matti
>
> *From:* Sergio Gutierrez [mailto:sag...@gmail.com]
> *Sent:* den 13 maj 2009 17:16
> *To:* Bogdan-Andrei Iancu
> *Cc:* Matti Zemack; users@lists.opensips.org
> *Subject:* Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>
> Hi Bogdan.
>
> For our particular need, it looks like we need to send the response in 
> a more complex way:
>
> response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)
>
> Could you give us any hint about nonceCount and clientNonce 
> parameters? Documentation is not very clear.
>
> Thanks and regards.
>
> Sergio.
>
> On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu 
> mailto:bog...@voice-system.ro>> wrote:
>
> Hi Matti,
>
> Actually it is SIP auth, so digest auth (RFC 2617)
> Shortly:
> HA1=MD5( auth_usernam ":" realm ":" passwd )
>
> HA2=MD5( method ":" ruri )
>
> response=MD5( HA1 ":" nonce ":" HA2)
>
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
> > Hi again,
> >
> > First of all; Thanks Bogdan!
> > Your tip works (theoretically) fine.
> > But, I just can't find a way of calculating the PAP2s authentication.
> > Not much seems to be documented.
> > Does anyone have any hints regarding Linksys authentication (for a
> > reboot at least).
> >
> > I've tried calculating using
> > http://en.wikipedia.org/wiki/Digest_access_authentication , and
> > basically sticking to RFC2069, as I don't believe I have have nonceCount
> > & clientNonce.
> > By the way; how should the digestURI look? (I've tried the combinations
> > that came to my mind...)
> >
> > Best regards,
> > Matti Zemack, Stockholm, Sweden
> >
> > -Original Message-
> > From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro 
> <mailto:bog...@voice-system.ro>]
> > Sent: den 12 maj 2009 10:33
> > To: Matti Zemack
> > Cc: users@lists.opensips.org <mailto:users@lists.opensips.org>
> > Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
> >
> > Hi Matti,
> >
> > Well, it should be possible - you do a 2 steps interaction with the
> > Linkys :
> > - first send the NOTIFY via the t_uac_dlg MI command and get from the
> > result the auth challenge (in the MI command response you do have access
> >
> > to the SIP reply)
> > - generate a new NOTIFY request including the Authorize header
> > calculated based on the received challenge.
> >
> > Regards,
> > Bogdan
> >
> > Matti Zemack wrote:
> >
> >> Hi all,
> >>
> >> I'm still dipping my toes in deep waters with OpenSips 1.5...
> >>
> >> And I've come across a small problem. I would like to reboot Linksys
> >> ATA (PAP2 etc...) using OpenSIPS.
> >>
> >> Can this maybe be done?
> >>
> >> Basically I use XML-RPC FIFO to send the SIP command. The problem is
> >> that Linksys replies with 401 challenge. Can I, or is it at all
> >> possible to reply to this challenge using OpenSIPS?
> >>
> >>
> >
> >
> >
>
>
> ___
> Users mailing list
> Users@lists.opensips.org <mailto:Users@lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> -- 
> Sergio Gutiérrez
>


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Matti Zemack
Hi again,

 

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.).

We did try with an empty cnonce and nonce count= "nc=0001" (or empty).

Without success.

 

/Matti

 

From: Sergio Gutierrez [mailto:sag...@gmail.com] 
Sent: den 13 maj 2009 17:16
To: Bogdan-Andrei Iancu
Cc: Matti Zemack; users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

 

Hi Bogdan.

For our particular need, it looks like we need to send the response in a more 
complex way:

response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)

Could you give us any hint about nonceCount and clientNonce parameters? 
Documentation is not very clear.

Thanks and regards.

Sergio.

On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu  
wrote:

Hi Matti,

Actually it is SIP auth, so digest auth (RFC 2617)
Shortly:
   HA1=MD5( auth_usernam ":" realm ":" passwd )

   HA2=MD5( method ":" ruri )

   response=MD5( HA1 ":" nonce ":"  HA2)


Regards,
Bogdan

Matti Zemack wrote:
> Hi again,
>
> First of all; Thanks Bogdan!
> Your tip works (theoretically) fine.
> But, I just can't find a way of calculating the PAP2s authentication.
> Not much seems to be documented.
> Does anyone have any hints regarding Linksys authentication (for a
> reboot at least).
>
> I've tried calculating using
> http://en.wikipedia.org/wiki/Digest_access_authentication , and
> basically sticking to RFC2069, as I don't believe I have have nonceCount
> & clientNonce.
> By the way; how should the digestURI look? (I've tried the combinations
> that came to my mind...)
>
> Best regards,
> Matti Zemack, Stockholm, Sweden
>
> -Original Message-----
> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro]
> Sent: den 12 maj 2009 10:33
> To: Matti Zemack
> Cc: users@lists.opensips.org
> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>
> Hi Matti,
>
> Well, it should be possible - you do a 2 steps interaction with the
> Linkys :
> - first send the NOTIFY via the t_uac_dlg MI command and get from the
> result the auth challenge (in the MI command response you do have access
>
> to the SIP reply)
> - generate a new NOTIFY request including the Authorize header
> calculated based on the received challenge.
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
>
>> Hi all,
>>
>> I'm still dipping my toes in deep waters with OpenSips 1.5...
>>
>> And I've come across a small problem. I would like to reboot Linksys
>> ATA (PAP2 etc...) using OpenSIPS.
>>
>> Can this maybe be done?
>>
>> Basically I use XML-RPC FIFO to send the SIP command. The problem is
>> that Linksys replies with 401 challenge. Can I, or is it at all
>> possible to reply to this challenge using OpenSIPS?
>>
>>
>
>
>


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




-- 
Sergio Gutiérrez

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Bogdan-Andrei Iancu
auth_name: "1001"
realm: realm from challenge from linksys
ruri: the sip RURI (sip:u...@domain)
 

Regards,
Bogdan

Matti Zemack wrote:
> Hi,
>
> That's basically what we have done.
> And, well, as I'm still a newbie, I've tried;
> * auth_name: all possibilities of "1001", "1...@serverip",
> "1...@deviceip", "1...@registereddomaininopensipsdbforthisuser". And all
> of these with "sip:" added in front.
> * realm: the realm in the 401 response, e.g. "172.xxx.xxx.xxx"
> * passwd: "1001"
> * method: "NOTIFY" (Actually also tried "10 NOTIFY")
> * ruri: tried all combinations as auth_name above.
> * nonce: as in 401 response from Linksys.
>
> Any help much appreciated. 
>
> Regards,
> Matti Zemack, Stockholm, Sweden
>
>
> -Original Message-----
> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro] 
> Sent: den 13 maj 2009 16:39
> To: Matti Zemack
> Cc: users@lists.opensips.org
> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>
> Hi Matti,
>
> Actually it is SIP auth, so digest auth (RFC 2617)
> Shortly:
> HA1=MD5( auth_usernam ":" realm ":" passwd )
>
> HA2=MD5( method ":" ruri )
>
> response=MD5( HA1 ":" nonce ":"  HA2)
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
>   
>> Hi again,
>>
>> First of all; Thanks Bogdan!
>> Your tip works (theoretically) fine. 
>> But, I just can't find a way of calculating the PAP2s authentication.
>> Not much seems to be documented.
>> Does anyone have any hints regarding Linksys authentication (for a
>> reboot at least).
>>
>> I've tried calculating using
>> http://en.wikipedia.org/wiki/Digest_access_authentication , and
>> basically sticking to RFC2069, as I don't believe I have have
>> 
> nonceCount
>   
>> & clientNonce.
>> By the way; how should the digestURI look? (I've tried the
>> 
> combinations
>   
>> that came to my mind...)
>>
>> Best regards,
>> Matti Zemack, Stockholm, Sweden
>>
>> -Original Message-
>> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro] 
>> Sent: den 12 maj 2009 10:33
>> To: Matti Zemack
>> Cc: users@lists.opensips.org
>> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>>
>> Hi Matti,
>>
>> Well, it should be possible - you do a 2 steps interaction with the
>> Linkys :
>> - first send the NOTIFY via the t_uac_dlg MI command and get from the 
>> result the auth challenge (in the MI command response you do have
>> 
> access
>   
>> to the SIP reply)
>> - generate a new NOTIFY request including the Authorize header 
>> calculated based on the received challenge.
>>
>> Regards,
>> Bogdan
>>
>> Matti Zemack wrote:
>>   
>> 
>>> Hi all,
>>>
>>> I'm still dipping my toes in deep waters with OpenSips 1.5...
>>>
>>> And I've come across a small problem. I would like to reboot Linksys 
>>> ATA (PAP2 etc...) using OpenSIPS.
>>>
>>> Can this maybe be done?
>>>
>>> Basically I use XML-RPC FIFO to send the SIP command. The problem is 
>>> that Linksys replies with 401 challenge. Can I, or is it at all 
>>> possible to reply to this challenge using OpenSIPS?
>>>
>>> 
>>>   
>>   
>> 
>
>
>   


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Sergio Gutierrez
Hi Bogdan.

For our particular need, it looks like we need to send the response in a
more complex way:

response = md5(HA1:nonce:nonceCount:clientNonce:qop:ha2)

Could you give us any hint about nonceCount and clientNonce parameters?
Documentation is not very clear.

Thanks and regards.

Sergio.

On Wed, May 13, 2009 at 9:38 AM, Bogdan-Andrei Iancu  wrote:

> Hi Matti,
>
> Actually it is SIP auth, so digest auth (RFC 2617)
> Shortly:
>HA1=MD5( auth_usernam ":" realm ":" passwd )
>
>HA2=MD5( method ":" ruri )
>
>response=MD5( HA1 ":" nonce ":"  HA2)
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
> > Hi again,
> >
> > First of all; Thanks Bogdan!
> > Your tip works (theoretically) fine.
> > But, I just can't find a way of calculating the PAP2s authentication.
> > Not much seems to be documented.
> > Does anyone have any hints regarding Linksys authentication (for a
> > reboot at least).
> >
> > I've tried calculating using
> > http://en.wikipedia.org/wiki/Digest_access_authentication , and
> > basically sticking to RFC2069, as I don't believe I have have nonceCount
> > & clientNonce.
> > By the way; how should the digestURI look? (I've tried the combinations
> > that came to my mind...)
> >
> > Best regards,
> > Matti Zemack, Stockholm, Sweden
> >
> > -Original Message-
> > From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro]
> > Sent: den 12 maj 2009 10:33
> > To: Matti Zemack
> > Cc: users@lists.opensips.org
> > Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
> >
> > Hi Matti,
> >
> > Well, it should be possible - you do a 2 steps interaction with the
> > Linkys :
> > - first send the NOTIFY via the t_uac_dlg MI command and get from the
> > result the auth challenge (in the MI command response you do have access
> >
> > to the SIP reply)
> > - generate a new NOTIFY request including the Authorize header
> > calculated based on the received challenge.
> >
> > Regards,
> > Bogdan
> >
> > Matti Zemack wrote:
> >
> >> Hi all,
> >>
> >> I'm still dipping my toes in deep waters with OpenSips 1.5...
> >>
> >> And I've come across a small problem. I would like to reboot Linksys
> >> ATA (PAP2 etc...) using OpenSIPS.
> >>
> >> Can this maybe be done?
> >>
> >> Basically I use XML-RPC FIFO to send the SIP command. The problem is
> >> that Linksys replies with 401 challenge. Can I, or is it at all
> >> possible to reply to this challenge using OpenSIPS?
> >>
> >>
> >
> >
> >
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
Sergio Gutiérrez
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Matti Zemack
Hi,

That's basically what we have done.
And, well, as I'm still a newbie, I've tried;
* auth_name: all possibilities of "1001", "1...@serverip",
"1...@deviceip", "1...@registereddomaininopensipsdbforthisuser". And all
of these with "sip:" added in front.
* realm: the realm in the 401 response, e.g. "172.xxx.xxx.xxx"
* passwd: "1001"
* method: "NOTIFY" (Actually also tried "10 NOTIFY")
* ruri: tried all combinations as auth_name above.
* nonce: as in 401 response from Linksys.

Any help much appreciated. 

Regards,
Matti Zemack, Stockholm, Sweden


-Original Message-
From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro] 
Sent: den 13 maj 2009 16:39
To: Matti Zemack
Cc: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

Hi Matti,

Actually it is SIP auth, so digest auth (RFC 2617)
Shortly:
HA1=MD5( auth_usernam ":" realm ":" passwd )

HA2=MD5( method ":" ruri )

response=MD5( HA1 ":" nonce ":"  HA2)

Regards,
Bogdan

Matti Zemack wrote:
> Hi again,
>
> First of all; Thanks Bogdan!
> Your tip works (theoretically) fine. 
> But, I just can't find a way of calculating the PAP2s authentication.
> Not much seems to be documented.
> Does anyone have any hints regarding Linksys authentication (for a
> reboot at least).
>
> I've tried calculating using
> http://en.wikipedia.org/wiki/Digest_access_authentication , and
> basically sticking to RFC2069, as I don't believe I have have
nonceCount
> & clientNonce.
> By the way; how should the digestURI look? (I've tried the
combinations
> that came to my mind...)
>
> Best regards,
> Matti Zemack, Stockholm, Sweden
>
> -Original Message-
> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro] 
> Sent: den 12 maj 2009 10:33
> To: Matti Zemack
> Cc: users@lists.opensips.org
> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>
> Hi Matti,
>
> Well, it should be possible - you do a 2 steps interaction with the
> Linkys :
> - first send the NOTIFY via the t_uac_dlg MI command and get from the 
> result the auth challenge (in the MI command response you do have
access
>
> to the SIP reply)
> - generate a new NOTIFY request including the Authorize header 
> calculated based on the received challenge.
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
>   
>> Hi all,
>>
>> I'm still dipping my toes in deep waters with OpenSips 1.5...
>>
>> And I've come across a small problem. I would like to reboot Linksys 
>> ATA (PAP2 etc...) using OpenSIPS.
>>
>> Can this maybe be done?
>>
>> Basically I use XML-RPC FIFO to send the SIP command. The problem is 
>> that Linksys replies with 401 challenge. Can I, or is it at all 
>> possible to reply to this challenge using OpenSIPS?
>>
>> 
>
>
>   


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Bogdan-Andrei Iancu
Hi Matti,

Actually it is SIP auth, so digest auth (RFC 2617)
Shortly:
HA1=MD5( auth_usernam ":" realm ":" passwd )

HA2=MD5( method ":" ruri )

response=MD5( HA1 ":" nonce ":"  HA2)

Regards,
Bogdan

Matti Zemack wrote:
> Hi again,
>
> First of all; Thanks Bogdan!
> Your tip works (theoretically) fine. 
> But, I just can't find a way of calculating the PAP2s authentication.
> Not much seems to be documented.
> Does anyone have any hints regarding Linksys authentication (for a
> reboot at least).
>
> I've tried calculating using
> http://en.wikipedia.org/wiki/Digest_access_authentication , and
> basically sticking to RFC2069, as I don't believe I have have nonceCount
> & clientNonce.
> By the way; how should the digestURI look? (I've tried the combinations
> that came to my mind...)
>
> Best regards,
> Matti Zemack, Stockholm, Sweden
>
> -Original Message-
> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro] 
> Sent: den 12 maj 2009 10:33
> To: Matti Zemack
> Cc: users@lists.opensips.org
> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>
> Hi Matti,
>
> Well, it should be possible - you do a 2 steps interaction with the
> Linkys :
> - first send the NOTIFY via the t_uac_dlg MI command and get from the 
> result the auth challenge (in the MI command response you do have access
>
> to the SIP reply)
> - generate a new NOTIFY request including the Authorize header 
> calculated based on the received challenge.
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
>   
>> Hi all,
>>
>> I'm still dipping my toes in deep waters with OpenSips 1.5...
>>
>> And I've come across a small problem. I would like to reboot Linksys 
>> ATA (PAP2 etc...) using OpenSIPS.
>>
>> Can this maybe be done?
>>
>> Basically I use XML-RPC FIFO to send the SIP command. The problem is 
>> that Linksys replies with 401 challenge. Can I, or is it at all 
>> possible to reply to this challenge using OpenSIPS?
>>
>> 
>
>
>   


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Sergio Gutierrez
Hello all

I am facing the same problem, but trying to reboot Grandstream.
It supposes to work in the same way, and I am following the algorithm from
wikipedia to create the response but it does not works.

Thanks in advance for any help.

Regards.

Sergio

On Wed, May 13, 2009 at 9:25 AM, Matti Zemack
wrote:

> Hi again,
>
> First of all; Thanks Bogdan!
> Your tip works (theoretically) fine.
> But, I just can't find a way of calculating the PAP2s authentication.
> Not much seems to be documented.
> Does anyone have any hints regarding Linksys authentication (for a
> reboot at least).
>
> I've tried calculating using
> http://en.wikipedia.org/wiki/Digest_access_authentication , and
> basically sticking to RFC2069, as I don't believe I have have nonceCount
> & clientNonce.
> By the way; how should the digestURI look? (I've tried the combinations
> that came to my mind...)
>
> Best regards,
> Matti Zemack, Stockholm, Sweden
>
> -Original Message-
> From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro]
> Sent: den 12 maj 2009 10:33
> To: Matti Zemack
> Cc: users@lists.opensips.org
> Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS
>
> Hi Matti,
>
> Well, it should be possible - you do a 2 steps interaction with the
> Linkys :
> - first send the NOTIFY via the t_uac_dlg MI command and get from the
> result the auth challenge (in the MI command response you do have access
>
> to the SIP reply)
> - generate a new NOTIFY request including the Authorize header
> calculated based on the received challenge.
>
> Regards,
> Bogdan
>
> Matti Zemack wrote:
> >
> > Hi all,
> >
> > I'm still dipping my toes in deep waters with OpenSips 1.5...
> >
> > And I've come across a small problem. I would like to reboot Linksys
> > ATA (PAP2 etc...) using OpenSIPS.
> >
> > Can this maybe be done?
> >
> > Basically I use XML-RPC FIFO to send the SIP command. The problem is
> > that Linksys replies with 401 challenge. Can I, or is it at all
> > possible to reply to this challenge using OpenSIPS?
> >
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
Sergio Gutiérrez
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-13 Thread Matti Zemack
Hi again,

First of all; Thanks Bogdan!
Your tip works (theoretically) fine. 
But, I just can't find a way of calculating the PAP2s authentication.
Not much seems to be documented.
Does anyone have any hints regarding Linksys authentication (for a
reboot at least).

I've tried calculating using
http://en.wikipedia.org/wiki/Digest_access_authentication , and
basically sticking to RFC2069, as I don't believe I have have nonceCount
& clientNonce.
By the way; how should the digestURI look? (I've tried the combinations
that came to my mind...)

Best regards,
Matti Zemack, Stockholm, Sweden

-Original Message-
From: Bogdan-Andrei Iancu [mailto:bog...@voice-system.ro] 
Sent: den 12 maj 2009 10:33
To: Matti Zemack
Cc: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

Hi Matti,

Well, it should be possible - you do a 2 steps interaction with the
Linkys :
- first send the NOTIFY via the t_uac_dlg MI command and get from the 
result the auth challenge (in the MI command response you do have access

to the SIP reply)
- generate a new NOTIFY request including the Authorize header 
calculated based on the received challenge.

Regards,
Bogdan

Matti Zemack wrote:
>
> Hi all,
>
> I'm still dipping my toes in deep waters with OpenSips 1.5...
>
> And I've come across a small problem. I would like to reboot Linksys 
> ATA (PAP2 etc...) using OpenSIPS.
>
> Can this maybe be done?
>
> Basically I use XML-RPC FIFO to send the SIP command. The problem is 
> that Linksys replies with 401 challenge. Can I, or is it at all 
> possible to reply to this challenge using OpenSIPS?
>


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-12 Thread Bogdan-Andrei Iancu
Hi Matti,

Well, it should be possible - you do a 2 steps interaction with the Linkys :
- first send the NOTIFY via the t_uac_dlg MI command and get from the 
result the auth challenge (in the MI command response you do have access 
to the SIP reply)
- generate a new NOTIFY request including the Authorize header 
calculated based on the received challenge.

Regards,
Bogdan

Matti Zemack wrote:
>
> Hi all,
>
> I’m still dipping my toes in deep waters with OpenSips 1.5…
>
> And I’ve come across a small problem. I would like to reboot Linksys 
> ATA (PAP2 etc…) using OpenSIPS.
>
> Can this maybe be done?
>
> Basically I use XML-RPC FIFO to send the SIP command. The problem is 
> that Linksys replies with 401 challenge. Can I, or is it at all 
> possible to reply to this challenge using OpenSIPS?
>
> Below is my PHP for this request. Note that I have coded end user IP 
> and no in the PHP as this gives me one less place for problems. J
>
> 
> # Using the XML-RPC extension to format the XML package
>
> echo(""); #For pretty browser output
>
> $params[]= "NOTIFY";
>
> $params[]= 'sip:1...@172.16.245.128';
>
> $params[]= '.';
>
> $params[]= '.';
>
> $params[]= "From: sip:xxx.xx.xxx.xxx\r\nTo: 
> \r\nEvent: reboot_now\r\nContact: 
> \r\nContent-Length: 0\r\nContent-Type: text/plain\r\n";
>
> $request = xmlrpc_encode_request("t_uac_dlg", $params);
>
> #$request = xmlrpc_encode_request("which", NULL); # For testing of XMLRPC
>
> # Using the cURL extension to send it off, first creating a custom 
> header block
>
> $header[] = "Host: 127.0.0.1";
>
> $header[] = "Connection: close";
>
> $header[] = "User-Agent: OpenSIPg XML_RPC Client";
>
> $header[] = "Content-type: text/xml";
>
> print_r($request); #debug
>
> echo("\n\n"); #debug
>
> print_r($header); #debug
>
> $ch = curl_init();
>
> curl_setopt( $ch, CURLOPT_URL, "http://127.0.0.1/RPC2";); # URL to post to
>
> curl_setopt( $ch, CURLOPT_PORT, "8080"); # URL to post to
>
> curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); # return into a variable
>
> curl_setopt( $ch, CURLOPT_HTTPHEADER, $header ); # custom headers, see 
> above
>
> curl_setopt( $ch, CURLOPT_POSTFIELDS, $request );
>
> curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'POST' ); # This POST is 
> special, and uses its specified Content-type
>
> $result = curl_exec( $ch ); # run!
>
> curl_close($ch);
>
> echo $result;
>
> ?>
>
> Best Regards,
>
> Matti Zemack, Stockholm, Sweden//
>
> 
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

2009-05-11 Thread Matti Zemack
Hi all,

 

I'm still dipping my toes in deep waters with OpenSips 1.5...

And I've come across a small problem. I would like to reboot Linksys ATA
(PAP2 etc...) using OpenSIPS.

Can this maybe be done?

 

Basically I use XML-RPC FIFO to send the SIP command. The problem is
that Linksys replies with 401 challenge. Can I, or is it at all possible
to reply to this challenge using OpenSIPS?

 

Below is my PHP for this request. Note that I have coded end user IP and
no in the PHP as this gives me one less place for problems. J

 

 

 

 

"); #For pretty browser output

$params[]= "NOTIFY";

$params[]= 'sip:1...@172.16.245.128';

$params[]= '.';

$params[]= '.';

$params[]= "From: sip:xxx.xx.xxx.xxx\r\nTo:
\r\nEvent: reboot_now\r\nContact:
\r\nContent-Length: 0\r\nContent-Type: text/plain\r\n";

 

$request = xmlrpc_encode_request("t_uac_dlg", $params);

#$request = xmlrpc_encode_request("which", NULL);  # For testing of
XMLRPC

 

# Using the cURL extension to send it off, first creating a custom
header block

$header[] = "Host: 127.0.0.1";

$header[] = "Connection: close";

$header[] = "User-Agent: OpenSIPg XML_RPC Client";

$header[] = "Content-type: text/xml";

 

print_r($request); #debug

echo("\n\n"); #debug

print_r($header); #debug

 

$ch = curl_init();

curl_setopt( $ch, CURLOPT_URL, "http://127.0.0.1/RPC2";); # URL to post
to

curl_setopt( $ch, CURLOPT_PORT, "8080"); # URL to post to

curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); # return into a variable

curl_setopt( $ch, CURLOPT_HTTPHEADER, $header ); # custom headers, see
above

curl_setopt( $ch, CURLOPT_POSTFIELDS, $request );

curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'POST' ); # This POST is
special, and uses its specified Content-type

$result = curl_exec( $ch ); # run!

curl_close($ch); 

echo $result;

?>

 

 

Best Regards,

Matti Zemack, Stockholm, Sweden

 

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users