Hello,
On 9/17/12 5:48 PM, Juha Heinanen wrote:
Hugh Waite writes:
This function was written because the
"record_route_preset()" function
did not create double record-routes and "record_route()" did not use the
advertised address correctly.
When Daniel implemented the feature to specify an advertised address per
listen socket in March, it also fixed the standard "record_route()"
function so that advertised addresses specified in the cfg file work
correctly in a record route.
hugh,
thanks for the explanation. it turned out that i cannot use
"record_route_advertised_address()" anyhow, because i need to also have
different ports on each side. so switched to "record_route_preset()",
which does what i want.
anyhow, i can add tracker item just in case someone later would
need a working record_route_advertised_address().
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().
Cheers,
Daniel
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 -
http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 -
http://asipto.com/u/katu