Hi Daniel,

Thanks for the clarification, this really helps. 

In the doc, it says that using advertised_address param should take care of the RR (other destination lumps).

https://www.kamailio.org/wiki/cookbooks/5.0.x/core#advertised_address

I think the doc should be updated with your example. 

listen=udp:x.x.x.x:5060 advertise x.x.x.x:5060

This works perfectly when the machine instance has VIP as public IP.

@Ivo:  record_route_advertised_address() also works in replacing the RR.


Thanks for the help.

Best regards,
MRIDUL

On Wed, Apr 12, 2017 at 5:15 PM, Mridul B <mridul@plivo.com> wrote:
Hi,

Using advertised_address core parameter in the kamailio script doesn't update the address mentioned in the Record-Route header. 

We see this problem in the 200 OK message (of the INVITE msg), where the Record-Route header sent by the Kamailio contains socket address.

We're using kamailio 4.4.5 (x86_64/linux) 239f3c

Can you please tell if this core parameter is effective for changing the RR header ?

Thanks
Best regards,
MRIDUL