[OpenSIPS-Users] Rebooting a Linksys through OpenSIPS

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed May 13 17:46:53 CEST 2009


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 
> <bogdan at voice-system.ro <mailto:bogdan at 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:bogdan at voice-system.ro
>     <mailto:bogdan at voice-system.ro>]
>     > Sent: den 12 maj 2009 10:33
>     > To: Matti Zemack
>     > Cc: users at lists.opensips.org <mailto:users at 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 at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> -- 
> Sergio Gutiérrez




More information about the Users mailing list