On Monday 13 July 2015 13:19:32 kai.ohnacker@cbc.de wrote:
To change the IP address which is used from the private server as the destination address, I added the following lines to the Kamailio.cfg.
modparam("registrar", "use_path",1) modparam("registrar", "path_mode", 2) modparam("registrar", "path_use_received",1) modparam("path", "use_received", 1)
But the routing behavior has not changed. (perhaps this configure was not the right)
Is there a way to configure the private server that the last IP address from the record-route header is used?
You try to use Path headers on the private server. But you are not inserting Path info on the proxy (add_path_received() in the from external to internal). The result appears to be that any response would be routed directly to the last inserted Path (the sip phone).