Hello,
the pseudo-variable is read only.
The recommended way would be to use listen with advertise, like:
listen=udp:1.2.3.4:5060 advertise 5.6.7.8:5060
That will take care of both Via and Record-Route headers as well as matching myself, no need to do other stuff in route blocks. Doesn't work for you?
Cheers, Daniel
On 01.10.18 22:16, Henning Westerholt wrote:
Am Freitag, 28. September 2018, 07:16:18 CEST schrieb Patrick Wakano:
Sorry to annoy again, but I did find a couple of more emails asking around about the possibility to pass a variable to the set_advertised_address, but no one was replied.... How is the status of these old core functions that don't accept variables as parameters? Is it something being worked on?
Hi Patrick,
about the old core function - I think that indeed some of them are still missing PV support. Regarding your question, have you already tried to use this PV:
https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#rai_-_received...
Best regards,
Henning