I have a weird situation. A polycom phone is configured to use system pbx1 as the primary outgoing 'proxy', followed by systems pbx3 and pbx2. All three systems have identical sip.conf files. The phone is registered on pbx1. I shut down the Asterisk application on pbx1. I make a call. The phone sends an INVITE to pbx2. Pbx2 sends back a 407 Proxy Auth message to the phone. The phone sends an ACK followed by the INVITE with the credentials. What does Asterisk do? It sends the 407 Proxy Auth message AGAIN. Why? The phone of course re-sends the INVITE with the credentials again, and of course Asterisk sends the 407 again. WHY? It looks like an Asterisk problem. As far as I can see, the phone is doing the right thing. Asterisk should not be sending Proxy Auth required over and over again. This problem completely invalidates any sort of Asterisk redundancy. If this doesn't work, Asterisk can't be used in a redundant configuration, and that's a deal breaker. Has anyone reading this done this before? Doug.
Douglas Garstang wrote:> I shut down the Asterisk application on pbx1. I make a call. The phone sends an INVITE to pbx2. Pbx2 sends back a 407 Proxy Auth message to the phone. The phone sends an ACK followed by the INVITE with the credentials. What does Asterisk do? It sends the 407 Proxy Auth message AGAIN. Why? The phone of course re-sends the INVITE with the credentials again, and of course Asterisk sends the 407 again. WHY?Have you opened a bug in the bug tracker with a proper SIP/debug trace for this problem so that people who understand the code can try to help you? Obviously this is not expected behavior.
> -----Original Message----- > From: Kevin P. Fleming [mailto:kpfleming@digium.com] > Sent: Thursday, May 25, 2006 9:43 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Failover Problem > > > Douglas Garstang wrote: > > > I shut down the Asterisk application on pbx1. I make a > call. The phone sends an INVITE to pbx2. Pbx2 sends back a > 407 Proxy Auth message to the phone. The phone sends an ACK > followed by the INVITE with the credentials. What does > Asterisk do? It sends the 407 Proxy Auth message AGAIN. Why? > The phone of course re-sends the INVITE with the credentials > again, and of course Asterisk sends the 407 again. WHY? > > Have you opened a bug in the bug tracker with a proper SIP/debug trace > for this problem so that people who understand the code can > try to help > you? Obviously this is not expected behavior.I have now...
I just realised that in actual fact Asterisk is displaying on the console 'Ignoring this INVITE request'. Any ideas why it would be doing that? It doesn't say WHY...> -----Original Message----- > From: Douglas Garstang > Sent: Thursday, May 25, 2006 10:41 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] Failover Problem > > > > -----Original Message----- > > From: Kevin P. Fleming [mailto:kpfleming@digium.com] > > Sent: Thursday, May 25, 2006 9:43 AM > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: Re: [Asterisk-Users] Failover Problem > > > > > > Douglas Garstang wrote: > > > > > I shut down the Asterisk application on pbx1. I make a > > call. The phone sends an INVITE to pbx2. Pbx2 sends back a > > 407 Proxy Auth message to the phone. The phone sends an ACK > > followed by the INVITE with the credentials. What does > > Asterisk do? It sends the 407 Proxy Auth message AGAIN. Why? > > The phone of course re-sends the INVITE with the credentials > > again, and of course Asterisk sends the 407 again. WHY? > > > > Have you opened a bug in the bug tracker with a proper > SIP/debug trace > > for this problem so that people who understand the code can > > try to help > > you? Obviously this is not expected behavior. > I have now... > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Doug, I think I have seen this - does the initial invite to pbx2 make complete sense - is it valid according to the sip.conf entry on pbx2? In the pbx2 sip.conf, try insecure=invite, maybe insecure=invite,port/insecure=port. I don't have a real handle on why, but I recall it solving some sort of similar behavior I saw, though it was in a different situation. I think I had 2 * servers talking to each other like your phone and pbx2: when someone tried to dial a sip URI to the second asterisk server using the first asterisk server as the outgoing proxy.>I have a weird situation. A polycom phone is configured to use system pbx1as the primary outgoing 'proxy', followed by systems pbx3 and pbx2. All three systems have identical sip.conf files. The phone is registered on pbx1.> >I shut down the Asterisk application on pbx1. I make a call. The phonesends an INVITE to pbx2. Pbx2 sends back a >407 Proxy Auth message to the phone. The phone sends an ACK followed by the INVITE with the credentials. What does >Asterisk do? It sends the 407 Proxy Auth message AGAIN. Why? The phone of course re-sends the INVITE with the credentials again, and of course Asterisk sends the 407 again. WHY?> >It looks like an Asterisk problem. As far as I can see, the phone is doingthe right thing. Asterisk should not be >sending Proxy Auth required over and over again.> >This problem completely invalidates any sort of Asterisk redundancy. Ifthis doesn't work, Asterisk can't be used >in a redundant configuration, and that's a deal breaker.> >Has anyone reading this done this before? > >Doug.Sincerely, Brent A. Torrenga brent.torrenga@torrenga.com Torrenga Engineering, Inc. 907 Ridge Road Munster, Indiana 46321-1771 tel:+1 219 836 8918 x325 fax:+1 219 836 1138 www.torrenga.com