[SR-Users] Record-Route advertised per branch

2022-06-16 Thread Ilie Soltanici
Hello, Is there any way to advertise a different IP Address in the Record-Route header individually per branch? I have a setup here - where Kamailio is listening on 2 different interfaces: Local IP and External IP. At the moment if the packet is coming through the internal interface - I'm checkin

Re: [SR-Users] Record-Route advertised per branch

2022-06-16 Thread Sergiu Pojoga
Have you tried calling *t_save_lumps()* before relaying, even before RR? On Thu, Jun 16, 2022 at 7:59 AM Ilie Soltanici wrote: > Hello, > > Is there any way to advertise a different IP Address in the Record-Route > header individually per branch? > > I have a setup here - where Kamailio is liste

Re: [SR-Users] Record-Route advertised per branch

2022-06-16 Thread Ilie Soltanici
Hello, Thank you, added it now - still the same, unfortunately. Regards, On Thu, 16 Jun 2022 at 13:29, Sergiu Pojoga wrote: > Have you tried calling *t_save_lumps()* before relaying, even before RR? > > On Thu, Jun 16, 2022 at 7:59 AM Ilie Soltanici > wrote: > >> Hello, >> >> Is there any way

Re: [SR-Users] Record-Route advertised per branch

2022-06-16 Thread Patrick Karton
It only work for request route.Le 16 juin 2022 14:19, Ilie Soltanici a écrit :Hello,Thank you, added it now - still the same, unfortunately.Regards,On Thu, 16 Jun 2022 at 13:29, Sergiu Pojoga wrote:Have you tried calling t_save_lumps() before relaying, even before RR?On Thu, Ju

Re: [SR-Users] Record-Route advertised per branch

2022-06-16 Thread Sergiu Pojoga
Have you tried just *record_route()* with *enable_double_rr* option enabled? All things considered, RR should take care of it all by itself, per branch. A script snippet could help. On Thu, Jun 16, 2022 at 10:05 AM Patrick Karton wrote: > It only work for request route. > > Le 16 juin 2022 14:1

Re: [SR-Users] Record-Route advertised per branch

2022-06-16 Thread Sergiu Pojoga
I just did this quick POC test which worked as expected, it added a single RR with public advertised and double RR with both public and private advertise for the branch that routes to a private interface. Prerequisites: - mhomed=1 - modparam("rr", "enable_double_rr", 1) - listen=YOUR_PUB

Re: [SR-Users] Record-Route advertised per branch

2022-06-17 Thread Daniel-Constantin Mierla
Adding that record route function can be used in branch_route only as well, not required to have one call in request_route. The suggested idea below, with advertise would be the one I would recommend as well. Cheers, Daniel On 16.06.22 17:33, Sergiu Pojoga wrote: > I just did this quick POC test

Re: [SR-Users] Record-Route advertised per branch

2022-06-17 Thread Ilie Soltanici
Hello, Indeed, by using advertised and enable_double_rr enabled record route header is added properly on all branches. Thank You @Sergiu for your message and your time. On Fri, 17 Jun 2022 at 12:04, Daniel-Constantin Mierla wrote: > Adding that record route function can be used in branch_route