On 08/07/2012 04:34 PM, Neven Boric wrote:
So, am I missing something or does set_advertised_port actually only accept literal values?
Correct, set_advertised_port does not accept PVs. There is an entire category of legacy core functions, and some module functions, for which that is true.
There's an ongoing effort to update many of them to use PVs, but it's ... incremental. :-)
Methodologically speaking, you really, really don't want to run Kamailio behind a NAT as a client, unless the endpoint on the other side of the NAT can deal with it entirely using far-end NAT traversal strategies.
-- Alex