Re: [SR-Users] Wrong Via and RR header added in UDP2TCP scenario

2014-05-15 Thread Sebastian Damm
Hi Daniel, unless mhomed is set to 1 by default, I don't have it set. At which time is the IP for RR and Via headers determined? Before sending out? It looks to me that it is determined a lot earlier, thus not using the value from the socket the packet actually gets sent out at the end. Best Rega

Re: [SR-Users] Wrong Via and RR header added in UDP2TCP scenario

2014-05-13 Thread Daniel-Constantin Mierla
Hello, do you have mhomed=1? In that case, kernel routing rules are returning what interface is the one to use -- kamailio does some temporary sockets to retrieve the interface from kernel. Cheers, Daniel On 13/05/14 18:02, Sebastian Damm wrote: Hi Alex, yes, I've seen it. But I don't want

Re: [SR-Users] Wrong Via and RR header added in UDP2TCP scenario

2014-05-13 Thread Sebastian Damm
Hi Alex, yes, I've seen it. But I don't want to use it since I can't set it generally, because this Loadbalancer also serves TLS, and TLS uses a different port. Any comments about this difference between the sending socket vs. the advertised socket when not configured specially? Best Regards, Se

Re: [SR-Users] Wrong Via and RR header added in UDP2TCP scenario

2014-05-13 Thread Alex Balashov
Sebastian, There is also an 'advertised_port' parameter, which might be of aid to you here. -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 United States Tel: +1-678-954-0670 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ _

Re: [SR-Users] Wrong Via and RR header added in UDP2TCP scenario

2014-05-13 Thread Sebastian Damm
Hi Alex, On Tue, May 13, 2014 at 4:39 PM, Alex Balashov wrote: > Have a look at replacing your record_route() call with > record_route_preset(): > >http://kamailio.org/docs/modules/4.1.x/modules/rr.html#idp114624 > > As for the advertised address more generally, i.e. in Via, have a look at >

Re: [SR-Users] Wrong Via and RR header added in UDP2TCP scenario

2014-05-13 Thread Alex Balashov
Hello Sebastian, On 05/13/2014 10:36 AM, Sebastian Damm wrote: Is there some way, I can influence, which IP and port Kamailio writes into those headers? Or is this a bug, that Kamailio doesn't check the sending socket correctly? Have a look at replacing your record_route() call with record_r

[SR-Users] Wrong Via and RR header added in UDP2TCP scenario

2014-05-13 Thread Sebastian Damm
Hi, we have a setup, where we have a TCP loadbalancer, which converts the requests from attached devices using TCP into UDP for the rest of our setup. This loadbalancer has a service IP, and additionally the host IP, it listens to different addresses. Example: Host IP is: 1.1.1.1 Service IP is: 2