Hi Petr, The message is denied because there are no credentials (authentication information) in it. And probably you have configured OpenSIPS to perform Digest Auth for registers - so , opensips is simply asking for auth via that 401.
Normally, the UAC, in response to a 401 reply, should resend the REGISTER with the credentials attached. Regards, Bogdan Petr Man wrote: > Helo again, > > I have started dumping around on the server and I think it is actually > a bug in the snom. As you can see in the following log, the REGISTER > contains my old IP address. Shouldn't it get a new one from the STUN > server? Why is this request refused by my OpenSIPS and not by any > other server I am using (i.e. sip2sip.info whis is running OpenSIPS > 1.4.5 (I think))? Oh an one more thing. The server responds with 401, > but this message doesn't even appear in the m3's log. > > Petr > > Here is a bit from tcpdump: > > 20:44:33.708443 IP (tos 0x0, ttl 49, id 24546, offset 0, flags [none], > proto UDP (17), length 537) 91.51.119.228.61001 > 81.169.132.241.5060: > SIP, length: 509 > REGISTER sip:madnetwork.org SIP/2.0 > Via: SIP/2.0/UDP 91.51.107.118:61000;branch=z9hG4bKgygurbkseafq96sn1f > Max-Forwards: 70 > From: <sip:[email protected]>;tag=mc9k914b > To: <sip:[email protected]> > Call-ID: 8i4xflcj9orx8wph.p0hmnv9buua42 > CSeq: 38204 REGISTER > Contact: <sip:[email protected]:61000;line=13252> > Allow: INVITE, CANCEL, BYE, ACK, REGISTER, OPTIONS, REFER, > SUBSCRIBE, NOTIFY, MESSAGE, INFO, PRACK > Expires: 600 > User-Agent: snom-m3-SIP/02.02 (MAC=0004132A9180; HW=1) > Content-Length: 0 > > > 20:44:33.708967 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF], > proto UDP (17), length 501) 81.169.132.241.5060 > 91.51.119.228.61000: > SIP, length: 473 > SIP/2.0 401 Unauthorized > Via: SIP/2.0/UDP > 91.51.107.118:61000;branch=z9hG4bKgygurbkseafq96sn1f;received=91.51.119.228 > From: <sip:[email protected]>;tag=mc9k914b > To: > <sip:[email protected]>;tag=92fbbc76078921fe49ac1acde8d8d9b2.2ec1 > Call-ID: 8i4xflcj9orx8wph.p0hmnv9buua42 > CSeq: 38204 REGISTER > WWW-Authenticate: Digest realm="madnetwork.org", > nonce="4a9d6cbd00001cf0456070be74dc7ef3e3a8a6d74b282478" > Server: OpenSIPS (1.4.1-tls (i386/linux)) > Content-Length: 0 > > > > > > > > On Tue, Sep 1, 2009 at 15:47, Bogdan-Andrei Iancu<[email protected]> > wrote: > >> Hi Petr, >> >> But if opensips does not even get the REGISTER, it is hard to blame it >> :)...As you said, check with wireshark to be sure that the send >> REGISTER actually gets to the server where opensips is running. >> >> Regards, >> Bogdan >> >> Petr Man wrote: >> >>> Hi, >>> the m3 keeps sending REGISTER and doesn't get any response back. It >>> kind of looks like as if the request never reached the server. They >>> appear in the phone's log, but I didn't check yet if they are really >>> sent by the phone. I will try it with wireshark. >>> Petr >>> >>> On Mon, Aug 31, 2009 at 09:33, Bogdan-Andrei >>> Iancu<[email protected]> wrote: >>> >>> >>>> Hi Petr, >>>> >>>> When you say your registration fails after the IP change, what exactly >>>> means? you snom phone does not simply send any more registers (after the >>>> previous one expired) or, you get a negative reply from opensips at a >>>> new registration attempt? >>>> >>>> Regards, >>>> Bogdan >>>> >>>> Petr Man wrote: >>>> >>>> >>>>> Hello list, >>>>> I have asked on the Snom forum about my problem with m3 phone in >>>>> conjunction with the OpenSIPS server a few weeks ago without any >>>>> helpful hints, where the problem might be. The original message is >>>>> here http://forum.snom.com/index.php?showtopic=1944. >>>>> My internet connection is an ADSL with regular interrupts every 24 >>>>> hours (to prevent/make harder to have i.e. webhosting on you home >>>>> connection...). The router receives a different IP every time. After >>>>> the reconnection all the accounts configured on my phone successfully >>>>> register, except for the OpenSIPS server I am running myself. The >>>>> server has a static IP and is located somewhere in a collocation. When >>>>> I used a softphone and forced the router to get a new public IP, the >>>>> softphone didn't have a problem re-registering with the server. >>>>> Reseting the phone helps. >>>>> I suspect this is a firmware bug in the m3, but maybe someone has an >>>>> idea how to fix this, because the problem appears only with OpenSIPS. >>>>> The log from the phone is not helpful at all it shows a bunch of >>>>> register requests, but no answer. I haven't found any register >>>>> requests in the OpenSIPS log from that particular phone in the debug >>>>> mode, but I might have overlooked them. What should I put to the >>>>> config file to isolate the request I am looking for? >>>>> Cheers, >>>>> Petr >>>>> _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
