<div dir="ltr"><div>Hi David,</div><div>Yes I use it<br></div><div><br></div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(197,134,192)">if</span><span style="color:rgb(212,212,212)"> (nat_uac_test(</span><span style="color:rgb(206,145,120)">"3"</span><span style="color:rgb(212,212,212)">) </span><span style="color:rgb(212,212,212)">&&</span><span style="color:rgb(212,212,212)"> (</span><span style="color:rgb(156,220,254)">$Ri</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(212,212,212)">==</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(156,220,254)">$var(publicip)</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(212,212,212)">||</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(156,220,254)">$Ri</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(212,212,212)">==</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(156,220,254)">$var(vpnip)</span><span style="color:rgb(212,212,212)"></span><span style="color:rgb(212,212,212)">))</span></div><div><span style="color:rgb(212,212,212)"> {</span></div><div><span style="color:rgb(212,212,212)"> xlog(</span><span style="color:rgb(206,145,120)">"L_INFO"</span><span style="color:rgb(212,212,212)">,</span><span style="color:rgb(206,145,120)">"$avp(startlog) -- Nated EP Detected</span><span style="color:rgb(215,186,125)">\n</span><span style="color:rgb(206,145,120)">"</span><span style="color:rgb(212,212,212)">);</span></div><div><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(197,134,192)">if</span><span style="color:rgb(212,212,212)"> (force_rport())</span></div><div><span style="color:rgb(212,212,212)"> {</span></div><div><span style="color:rgb(212,212,212)"> xlog(</span><span style="color:rgb(206,145,120)">"L_INFO"</span><span style="color:rgb(212,212,212)">,</span><span style="color:rgb(206,145,120)">"$avp(startlog) -- RPORT parameter forced</span><span style="color:rgb(215,186,125)">\n</span><span style="color:rgb(206,145,120)">"</span><span style="color:rgb(212,212,212)">);</span></div><div><span style="color:rgb(212,212,212)"> }</span></div><div><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(197,134,192)">if</span><span style="color:rgb(212,212,212)"> (fix_nated_contact())</span></div><div><span style="color:rgb(212,212,212)"> {</span></div><div><span style="color:rgb(212,212,212)"> xlog(</span><span style="color:rgb(206,145,120)">"L_INFO"</span><span style="color:rgb(212,212,212)">,</span><span style="color:rgb(206,145,120)">"$avp(startlog) -- Nated $rm's Contact Fixed !</span><span style="color:rgb(215,186,125)">\n</span><span style="color:rgb(206,145,120)">"</span><span style="color:rgb(212,212,212)">);</span></div><div><span style="color:rgb(212,212,212)"> }</span></div><div><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(197,134,192)">if</span><span style="color:rgb(212,212,212)"> (fix_nated_sdp(</span><span style="color:rgb(206,145,120)">"10"</span><span style="color:rgb(212,212,212)">))</span></div><div><span style="color:rgb(212,212,212)"> {</span></div><div><span style="color:rgb(212,212,212)"> xlog(</span><span style="color:rgb(206,145,120)">"L_INFO"</span><span style="color:rgb(212,212,212)">,</span><span style="color:rgb(206,145,120)">"$avp(startlog) -- Nated SDP Fixed for $rm</span><span style="color:rgb(215,186,125)">\n</span><span style="color:rgb(206,145,120)">"</span><span style="color:rgb(212,212,212)">);</span></div><div><span style="color:rgb(212,212,212)"> }</span></div><div><span style="color:rgb(212,212,212)"> }</span></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 16 déc. 2019 à 13:50, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="auto">Aré you using nathelper?</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 16 Dec 2019 at 12:06, Mickael Hubert <<a href="mailto:mickael@winlux.fr" target="_blank">mickael@winlux.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div>I advanced in my LAB</div><div>I have this configuration:</div><div>SIP client (tcp:192.168.10.203) -- my NAT router --> (tcp:<a href="http://2.2.2.2:8060" target="_blank">2.2.2.2:8060</a>) opensips (udp:<a href="http://10.1.15.126:5060" target="_blank">10.1.15.126:5060</a>) --> rest of infra (udp:<a href="http://10.1.15.0/24:5060" target="_blank">10.1.15.0/24:5060</a>)</div><div><br></div><div>When I received the reinvite from "rest of infra" on private interface (10.1.15.126), I could see this log:<br></div><div><br></div><div><span style="font-family:monospace">Dec 16 12:55:27 am-frontal1a-test /usr/local/sbin/opensips[26160]: ERROR:tm:msg_send: send() to <a href="http://192.168.10.203:5060" style="font-family:monospace" target="_blank">192.168.10.203:5060</a> for proto tcp/2 failed<br>Dec 16 12:55:27 am-frontal1a-test /usr/local/sbin/opensips[26160]: ERROR:tm:t_forward_nonack: sending request failed<br>Dec 16 12:55:27 am-frontal1a-test /usr/local/sbin/opensips[26160]: retcode = -6</span></div><div><br></div><div>I don't know why OpenSIPS tries to send the Re-invite to client private IP instead client public port and IP (natted).</div><div><br></div><div>Do you have an idea please ?</div><div><br></div><div>thanks<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 12 déc. 2019 à 11:09, Mickael Hubert <<a href="mailto:mickael@winlux.fr" target="_blank">mickael@winlux.fr</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div>I have an issue, opensips doesn't want forward Re-INVITE during UDP to TCP mapping session.</div><div>Customer (NATTED) -- TCP --> (public interface listen tcp:8060) OpenSIPS (private interface listen udp:5060) --> rest of infrastructure (udp:5060)</div><div><br></div><div>I can send a call from customer to OpenSIPS (initial INVITE, 200OK, etc ...).</div><div>But when I received Re-INVITE from UAS (sip session timer), OpenSIPS doesn't forward it to customer.</div><div><br></div><div>You can see the call flow here: <a href="https://photos.app.goo.gl/eUSb5MvBhUfueaoM7" target="_blank">https://photos.app.goo.gl/eUSb5MvBhUfueaoM7</a></div><div>You can see SIP messages and opensips's logs in txt file in attachment<br></div><div><br></div><div>OpenSIPS handles on it's public interface:</div><div>- Topology hiding</div><div>- Nat detection</div><div><br></div><div>Thanks a lot for you help !<br></div><div><br></div></div>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>