Re: [SR-Users] loose_route() with pre-loaded Route in ACK

2012-03-01 Thread Klaus Darilion
On 01.03.2012 00:44, Andreas Granig wrote: On 02/29/2012 09:34 PM, Klaus Darilion wrote: Maybe you can catch the ACK before loose_route check with if (ACK&& has_totag()&& uri=myself) { # use load-balancer logic ... } This, and an rr-param to manually distinguish between hop-by-hop and e

Re: [SR-Users] loose_route() with pre-loaded Route in ACK

2012-02-29 Thread Andreas Granig
On 02/29/2012 09:34 PM, Klaus Darilion wrote: > Maybe you can catch the ACK before loose_route check with > if (ACK && has_totag() && uri=myself) { > # use load-balancer logic ... > } This, and an rr-param to manually distinguish between hop-by-hop and end-to-end messages in case the Route heade

Re: [SR-Users] loose_route() with pre-loaded Route in ACK

2012-02-29 Thread Klaus Darilion
Am 29.02.2012 19:12, schrieb Andreas Granig: On 02/29/2012 06:35 PM, Andreas Granig wrote: If tm is used, it will take care of this by consuming the ACK and generating a new one. It seems that we need some fixes for stateless routing. I already switched back to transaction stateful routing fo

Re: [SR-Users] loose_route() with pre-loaded Route in ACK

2012-02-29 Thread Andreas Granig
On 02/29/2012 06:35 PM, Andreas Granig wrote: >> If tm is used, it will take care of this by consuming the ACK and >> generating a new one. It seems that we need some fixes for stateless >> routing. > > I already switched back to transaction stateful routing for now until I > get a better idea abo

Re: [SR-Users] loose_route() with pre-loaded Route in ACK

2012-02-29 Thread Andreas Granig
On 02/29/2012 06:23 PM, Klaus Darilion wrote: > That's really weird. It should not rewrite $ru. Maybe there is some > special handling for ACK. Yeah, I'm going to check the source. > Anyway, if the Route header is consumed and pushed into $du it means > that the "special behavior" which was done

Re: [SR-Users] loose_route() with pre-loaded Route in ACK

2012-02-29 Thread Klaus Darilion
On 29.02.2012 18:01, Andreas Granig wrote: Hi Klaus, On 02/29/2012 03:53 PM, Klaus Darilion wrote: However if a 407 is relayed back from the registrar via the lb to the UA, it sends an ACK, again with pre-loaded Route header like in the initial INVITE, this time with to-tag. In that case, loo

Re: [SR-Users] loose_route() with pre-loaded Route in ACK

2012-02-29 Thread Andreas Granig
On 02/29/2012 06:01 PM, Andreas Granig wrote: > Proxy is running on 192.168.51.133:5060, and client (linphone-3) sends a > header "Route: " in the ACK after 407 > ++ before loose-route, $du='' - M=ACK R=sip:testuser3@192.168.51.133 > ++ after successful loose-route, $du='sip:192.168.51.133;lr' -

Re: [SR-Users] loose_route() with pre-loaded Route in ACK

2012-02-29 Thread Andreas Granig
Hi Klaus, On 02/29/2012 03:53 PM, Klaus Darilion wrote: >> However if a 407 is relayed back from the registrar via the lb to the >> UA, it sends an ACK, again with pre-loaded Route header like in the >> initial INVITE, this time with to-tag. In that case, loose_route() >> returns true, but the $du

Re: [SR-Users] loose_route() with pre-loaded Route in ACK

2012-02-29 Thread Klaus Darilion
On 29.02.2012 14:34, Andreas Granig wrote: Hi, I ran into an interesting scenario when experimenting with kamailio 3.1 as a stateless proxy (no tm module used): There is an initial INVITE without to-tag and with pre-loaded Route header pointing to the external address of the lb. When I call l