Daniel-Constantin Mierla writes:
as Hugh pointed, doesn't the 'advertise' attribute for listen do what you need?
http://www.kamailio.org/wiki/cookbooks/3.3.x/core#listen
If you add 'advertise' address to listen parameter, then you just have to use the classic record_route().
i'll need to test if i "advertise" address does what i want, but i doubt it, because it changes also via address.
-- juha