<div dir="ltr">Hello everyone,<div><br></div><div>I have system setup where there are few Asterisk servers behind Kamailio that is behind the firewall. There is a problem with call initiation. When phone from outside sends INVITE to Kamailio, it then passes it to one of Asterisk servers. Asterisk server eventually replies to Kamailio with 200 OK. Contact header contains Asterisk's local IP address and port. Kamailio executes function <b>fix_nated_contact</b>  before sending reply to the phone. However Contact header will still have Asterisk's local socket.</div><div><br></div><div><b>fix_nated_contact</b> is being executed with no doubt. I can see xlog output that I set before and after it. Can someone tell how exactly <b>fix_nated_contact</b> gets "<i>request's source address:port pair</i>" and if it can be printed to the log?</div><div><br></div><div>Thank you!</div></div>