<div dir="ltr">Make sure you are calling force_rport. <div><br></div><div>Br, Aqs. <br><div class="gmail-level3" style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br class="gmail-Apple-interchange-newline">

</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 26 March 2018 at 13:57, Yuriy Gorlichenko <span dir="ltr"><<a href="mailto:ovoshlook@gmail.com" target="_blank">ovoshlook@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<br>I'm using version: kamailio 5.1.2 <br><br>I have strange issue with auth_challenge<br><br>kamialio works as NAT handler. When Register comes kamailio handles nat and save original ip:port at the received field in location table<br><br>I found that when local port in contact is different than external port reply 407 on INVITE comes to externalip (from received) : internalport(from contact)<br>And never reaches destination<br><br>for exmaple<br>Register comes from <br><a href="http://192.168.1.10:50555" target="_blank">192.168.1.10:50555</a><br><br>Kamailio saves at the Received<br><a href="http://12.1.1.12:1030" target="_blank">12.1.1.12:1030</a><br><br>but when invite comes form <a href="http://12.1.1.12:1030" target="_blank">12.1.1.12:1030</a> kamailio sends reply to <br><a href="http://12.1.1.12:50555" target="_blank">12.1.1.12:50555</a><br><br>i don't think that this is an issue in kamailio source code but i can find where i can configure it<br><br></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>