<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<div><br></div><div>You may wish to have a look at the ‘advertise’ directive to the core listen= parameter:</div><div><br></div><div><a href="https://www.kamailio.org/wiki/cookbooks/5.2.x/core#listen">https://www.kamailio.org/wiki/cookbooks/5.2.x/core#listen</a></div><div><br></div><div>For more fine-grained control, record_route_preset() takes an argument:</div><div><br></div><div><a href="https://kamailio.org/docs/modules/5.2.x/modules/rr.html#rr.f.record_route_preset">https://kamailio.org/docs/modules/5.2.x/modules/rr.html#rr.f.record_route_preset</a></div><div><br></div><div>But the first approach is better and more comprehensive for your situation, since it also covers Via.</div><div><br></div><div>— Alex<br><br><div id="AppleMailSignature" dir="ltr">—<div>Sent from mobile, with due apologies for brevity and errors.</div></div><div dir="ltr"><br>On Aug 26, 2019, at 4:12 PM, przeqpiciel <<a href="mailto:przeqpiciel@gmail.com">przeqpiciel@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hi,<div>I have some issue and dont have enought knowledge to fix it. I have simple infrastructure.</div><div>Internet -> router (NAT) -> kamailio</div><div>                                       -> asterisk</div><div>Kamailio and Asterisk are inside the network and Kamailio places his own private address in the "record-route" headers instead of who's public. There is configuration to said to him what IP is proper ?</div></div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>Kamailio (SER) - Users Mailing List</span><br><span><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a></span><br><span><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br></div></blockquote></div></body></html>