Skip Menu |

This queue is for tickets about the Net-SIP CPAN distribution.

Report information
The Basics
Id: 30691
Status: resolved
Priority: 0/
Queue: Net-SIP

People
Owner: Nobody in particular
Requestors: stefano.pisani [...] omnianet.it
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: authentication looping
Date: Tue, 13 Nov 2007 11:41:25 +0100
To: <bug-Net-SIP [...] rt.cpan.org>
From: "Stefano Pisani" <stefano.pisani [...] omnianet.it>
when the password is wrong Net::SIP::Simple register doesn't work correctly and loops on autentication appending this line many times authorization: Digest username="102",realm="sip.omnianet.it",nonce="47397d8e1c9af4a9a34813f6276c9f5f6822168f",uri="sip:sip.omnianet.it",response="fc8f58a422622959451ce1fdbc9cbef3" until... SIP/2.0 513 Message toooo big all is fine if the password is correct this is the call $ua->register( from => $from, contact => $contact, expires => $expires, auth => [ $username,$password ], registrar => $registrar, ); best regards stefano pisani
Thanks for the bug report. The issue should be fixed in version 0.39 which I just uploaded to CPAN. Regards, Steffen On Tue Nov 13 05:42:06 2007, stefano.pisani@omnianet.it wrote: Show quoted text
> when the password is wrong > > Net::SIP::Simple register doesn't work correctly and loops on > autentication > appending this line many times > > authorization: Digest >
username="102",realm="sip.omnianet.it",nonce="47397d8e1c9af4a9a34813f6276c9f5f6822168f",uri="sip:sip.omnianet.it",response="fc8f58a422622959451ce1fdbc9cbef3" Show quoted text
> > until... > SIP/2.0 513 Message toooo big > > all is fine if the password is correct > > this is the call > > $ua->register( > from => $from, > contact => $contact, > expires => $expires, > auth => [ $username,$password ], > registrar => $registrar, > ); > > best regards > stefano pisani >
Subject: Re: [rt.cpan.org #30691] authentication looping
Date: Wed, 21 Nov 2007 11:29:50 +0100
To: <bug-Net-SIP [...] rt.cpan.org>
From: "Stefano Pisani" <stefano.pisani [...] omnianet.it>
Hi, the bug reporting is not working so I can write here. I saw a problem when I use a port in leg different from 5060 my $leg = IO::Socket::INET->new( Proto => 'udp', LocalAddr => '212.109.160.59', LocalPort => 5061 ) || die "cannot create leg"; $leg = Net::SIP::Leg->new( sock => $leg ); my $ua = Net::SIP::Simple->new( legs => \@legs, ); my $exp = $ua->register( from => $from, contact => $contact, expires => $expires, auth => [ $username,$password ], registrar => $registrar, ); The registrar responds on 5060 even if I open leg on 5061. I worked it around with adding "force_rport()" in openser.cfg Best regards. stefano pisani - rome - italy Show quoted text
----- Original Message ----- From: "Steffen Ullrich via RT" <bug-Net-SIP@rt.cpan.org> To: <stefano.pisani@omnianet.it> Sent: Wednesday, November 14, 2007 5:16 PM Subject: [rt.cpan.org #30691] authentication looping
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=30691 > > > Thanks for the bug report. > The issue should be fixed in version 0.39 which I just uploaded to CPAN. > > Regards, > Steffen > > On Tue Nov 13 05:42:06 2007, stefano.pisani@omnianet.it wrote:
>> when the password is wrong >> >> Net::SIP::Simple register doesn't work correctly and loops on >> autentication >> appending this line many times >> >> authorization: Digest >>
> username="102",realm="sip.omnianet.it",nonce="47397d8e1c9af4a9a34813f6276c9f5f6822168f",uri="sip:sip.omnianet.it",response="fc8f58a422622959451ce1fdbc9cbef3"
>> >> until... >> SIP/2.0 513 Message toooo big >> >> all is fine if the password is correct >> >> this is the call >> >> $ua->register( >> from => $from, >> contact => $contact, >> expires => $expires, >> auth => [ $username,$password ], >> registrar => $registrar, >> ); >> >> best regards >> stefano pisani >>
> > > > > __________ Informazione NOD32 2658 (20071114) __________ > > Questo messaggio stato controllato dal Sistema Antivirus NOD32 > http://www.nod32.it > >
First - please reopen an unrelated bug. If opening a new one contact me instead at the email given at http://search.cpan.org/~sullr/. About your problem: It looks like you specify your own $contact. The registrar will reply at the SIP address specified in $contact, so you have to add the port there too, e.g 'sip:bla@212.109.160.59:5061'. Show quoted text
> my $exp = $ua->register( > from => $from, > contact => $contact, > expires => $expires, > auth => [ $username,$password ], > registrar => $registrar, > ); > > The registrar responds on 5060 even if I open leg on 5061. > I worked it around with adding "force_rport()" in openser.cfg
Subject: Re: [rt.cpan.org #30691] authentication looping
Date: Fri, 23 Nov 2007 19:11:13 +0100
To: <bug-Net-SIP [...] rt.cpan.org>
From: "Stefano Pisani" <stefano.pisani [...] omnianet.it>
The register will reply at the address specified in Via header. There you could add the right port in the Via header (not only the leg IP). Infact, I told you, using the "force_rport()" fuction in OpenSER the problem was worked aroud. Best regards. Stefano Pisani Show quoted text
----- Original Message ----- From: "Steffen Ullrich via RT" <bug-Net-SIP@rt.cpan.org> To: <stefano.pisani@omnianet.it> Sent: Friday, November 23, 2007 5:56 PM Subject: [rt.cpan.org #30691] authentication looping
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=30691 > > > First - please reopen an unrelated bug. > If opening a new one contact me instead at the email given at > http://search.cpan.org/~sullr/. > > About your problem: > > It looks like you specify your own $contact. > The registrar will reply at the SIP address specified in > $contact, so you have to add the port there too, e.g > 'sip:bla@212.109.160.59:5061'. >
> > my $exp = $ua->register( > > from => $from, > > contact => $contact, > > expires => $expires, > > auth => [ $username,$password ], > > registrar => $registrar, > > ); > > > > The registrar responds on 5060 even if I open leg on 5061. > > I worked it around with adding "force_rport()" in openser.cfg
> >
Please please don't reopen an unrelated bug by replying to it. Leave this bug closed. I'll contact you outside of this bug for the remaining issues