<div dir="ltr"><div>Maybe I founded:</div><div>I tested a call through Internet connection and I can see (uac natted):</div><div><br></div><div><span style="font-family:monospace">Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:proto_tcp_send: <b>no open tcp connection found</b>, opening new one, async = 1<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:probe_max_sock_buff: getsockopt: snd is initially 16384<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: INFO:core:probe_max_sock_buff: using snd buffer of 416 kb<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 11<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:tcpconn_async_connect: Polling is overdue<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:tcpconn_async_connect: Create connection for async connect<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:print_ip: tcpconn_new: new tcp connection to: 192.168.10.203<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:tcpconn_new: on port 5060, proto 2<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:proto_tcp_send: Successfully connected from interface <a href="http://192.168.10.203:5060">192.168.10.203:5060</a> to <a href="http://192.168.10.203:56899">192.168.10.203:56899</a>!<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:proto_tcp_send: Successfully started async connection</span></div><div><span style="font-family:monospace">Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:tm:insert_timer_unsafe: [0]: 0x7efe91196790 (99)<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:tm:t_relay_to: new transaction fwd'ed<br>Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: retcode = 1</span></div><div><br></div><div>The re-invite is never forwarded (no trace with sngrep, or classic tcpdump) <br></div><div>I don't know why opensips wants use private IP and not natted IP... So...</div><div><br></div><div>I tested through VPN connection (uac natted):</div><div><br></div><div><span style="font-family:monospace">Dec 16 15:37:28 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:tcp_conn_get: <b>tcp connection found</b> (0x7efe9118cf48), acquiring fd<br>Dec 16 15:37:28 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:tcp_conn_get: c= 0x7efe9118cf48, n=16, Usock=168<br>Dec 16 15:37:28 am-frontal1a-test /usr/local/sbin/opensips[31187]: DBG:core:handle_worker: read response= 7efe9118cf48, 1, fd -1 from 35 (31165)<br>Dec 16 15:37:28 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:tcp_conn_get: after receive_fd: c= 0x7efe9118cf48 n=8 fd=11<br>Dec 16 15:37:28 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:proto_tcp_send: sending via fd 11...<br>Dec 16 15:37:28 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:async_tsend_stream: Async successful write from first try on 0x7efe9118cf48<br>Dec 16 15:37:28 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:proto_tcp_send: after write: c= 0x7efe9118cf48 n/len=1014/1014 fd=11<br>Dec 16 15:37:28 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:tm:insert_timer_unsafe: [0]: 0x7efe91196790 (1403)<br>Dec 16 15:37:28 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:tm:t_relay_to: new transaction fwd'ed<br>Dec 16 15:37:28 am-frontal1a-test /usr/local/sbin/opensips[31165]: retcode = 1</span></div><div><span style="font-family:monospace"><br></span></div><div>The re-inivte is forwarded correctly !</div><div><br></div><div>I pretty sure I use the keepalived mecasim ....<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 16 déc. 2019 à 14:27, Mickael Hubert <<a href="mailto:mickael@winlux.fr">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 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-wrap"><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" target="_blank">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>
</blockquote></div>