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:[email protected]] Sent: den 13 maj 2009 16:39 To: Matti Zemack Cc: [email protected] 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:[email protected]] > Sent: den 12 maj 2009 10:33 > To: Matti Zemack > Cc: [email protected] > 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 [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
