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*
Hi
Check this: record_route_advertised_address("T_ADDR:T_PORT");
**Regards, Ivo
On 04/12/2017 02:45 PM, Mridul B 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*
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
you should use listen with advertise instead of advertise_address parameter, it takes care of both Via and Record-Route, as well as matching 'myself'. See:
- https://www.kamailio.org/wiki/cookbooks/5.0.x/core#listen
The advertise_address is only for Via, for Record-Route you will have to use other functions from RR module
Cheers, Daniel
On 12.04.17 13:45, Mridul B 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*
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
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).
<goog_30153741> 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*