<div dir="ltr"><div>Ok guys. The issue was in my misunderstanding of RFC and advertised_address variable.<br></div>Removing advertised_address solved the issue.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-25 17:49 GMT+02:00 Alberto Sagredo <span dir="ltr"><<a href="mailto:alberto.sagredo@avanzada7.com" target="_blank">alberto.sagredo@avanzada7.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">:) Great<br><div><br></div><div>So you will have maybe now something as this</div><div><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Record-Route: <sip:PUBLIC_IP;r2=on;lr=on;ftag=as2c0c55b9>
Record-Route: <sip:PRIVATE_IP;r2=on;lr=on;ftag=as2c0c55b9></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">And ACKS will go to right place..</pre></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-02-25 16:43 GMT+01:00 Alexandru Covalschi <span dir="ltr"><<a href="mailto:568691@gmail.com" target="_blank">568691@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>force_send_socket is a good idea - thanx!<br></div>traces are in initial message<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-25 17:02 GMT+02:00 Alberto Sagredo <span dir="ltr"><<a href="mailto:alberto.sagredo@avanzada7.com" target="_blank">alberto.sagredo@avanzada7.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">HI Alexandru i talk about something like this maybe in your RELAY route or similar.<div><br></div><div>I think you would have issues with ACKs until you would have Record-Route: doubled<br><div><br></div><div>







<p><span>  if (dst_ip==LOCALIPNETWORK/24) {</span></p>
<p><span>  xlog("Using socket: LOCALIP:5060");</span></p>
<p><span> force_send_socket(udp:LOCALIP:5060);</span></p>
<p><span>  } else {</span></p>
<p><span>   xlog("Using socket: PUBLICIP:5060");</span></p>
<p><span>force_send_socket(udp:PUBLICIP:5060);</span></p><p>   }</p>
<p><span></span>Hope this helps you</p></div></div><div class="gmail_extra">Use record_route() as well. </div><div class="gmail_extra"><br></div><div class="gmail_extra">Anyway show me a trace that goes to FreeSwitch from Kamailio.</div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-25 10:55 GMT+01:00 Alexandru Covalschi <span dir="ltr"><<a href="mailto:568691@gmail.com" target="_blank">568691@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>No other rr params defined so double rr is default - enabled.<br></div>What do you mean by "force traffic" - how to do that? Every other request (excep BYE - same problem with it) flows OK.<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-25 11:49 GMT+02:00 Alexandru Covalschi <span dir="ltr"><<a href="mailto:568691@gmail.com" target="_blank">568691@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, thanks for answer<br><br></div>Here's configuration:<br><div><br>listen=udp:MY_EXT_IP_ADDR:5060<br>listen=tcp:MY_EXT_IP_ADDR:5060<br>listen=udp:MY_INT_IP_ADDR:5060<br>listen=TCP:MY_INT_IP_ADDR:5060<br>listen=MY_WS_ADDR<br>advertised_address = MY_EXT_IP_ADDR<br>alias = MY_INT_IP_ADDR<br>alias = MY_DOMAIN<br><br>#!ifdef WITH_TLS<br>listen=MY_WSS_ADDR<br>#!endif<br><br>port=5060<br><br>...<br><br># ----- rr params -----<br>modparam("rr", "enable_full_lr", 1)<br>modparam("rr", "append_fromtag", 1)<br><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-25 8:47 GMT+02:00 Alberto Sagredo <span dir="ltr"><<a href="mailto:alberto.sagredo@avanzada7.com" target="_blank">alberto.sagredo@avanzada7.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Alexandru<div><br></div><div>How is your configuration about Public IP and Private IP?<br><br>Do you use advertise?</div><div><br></div><div>Maybe you need to force Outbound traffic to Public IP Socket and inside traffic to Private IP .</div><div><br></div><div>Do you have double record routing?</div><div><br></div><div>BR</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2016-02-25 1:24 GMT+01:00 Alexandru Covalschi <span dir="ltr"><<a href="mailto:568691@gmail.com" target="_blank">568691@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello everyone.<br clear="all"><div><div><br></div><div>The setup is:<br></div><div>Carrier ip is CARRIER_IP<br></div><div>Public network Kamailio IP will be PUBLIC_IP<br></div><div>Private network Kamailio IP will be KAMAILIO_PRIVATE_IP<br></div><div>Private network Freeswitch IP is FREESWITCH_PRIVATE_IP<br><br></div><div>ACK<br></div><div>CARRIER_IP -> PUBLIC_IP->FREESWITCH_PRIVATE_IP<br><br></div><div>And freeswitch tries to actually send ACK back to PUBLIC_IP which he can't access.<br><br></div><div>Kamailio trace: <a href="http://pastebin.com/raw/1W1sXuUa" target="_blank">http://pastebin.com/raw/1W1sXuUa</a><br></div><div>Freeswitch trace: <a href="http://pastebin.com/raw/KkZCwTTJ" target="_blank">http://pastebin.com/raw/KkZCwTTJ</a><br></div><div><br></div><div>request_route: <a href="http://pastebin.com/raw/Y17pXUGY" target="_blank">http://pastebin.com/raw/Y17pXUGY</a><br></div><div>NATMANAGE route: <a href="http://pastebin.com/raw/0BpPDjN0" target="_blank">http://pastebin.com/raw/0BpPDjN0</a><br>WITHINDLG route: <a href="http://pastebin.com/raw/5LpwSigF" target="_blank">http://pastebin.com/raw/5LpwSigF</a><br><br></div><div>I'm seeking help with that - what parameter I need to change/add to solve that? <br></div><div>Maybe it's a networking problem - but why then ACK reaches Freeswitch and all other requests flow OK?<br><br></div><div>Thanks in advance, Alex<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><br></div><div>-- <br><div><div dir="ltr">Alexandru Covalschi<br>ABRISS-Solutions<div>VoIP engineer and system administrator<br>phone: <a href="tel:%2B37367398493" value="+37367398493" target="_blank">+37367398493</a><br>web: <a href="http://abs-telecom.com/" target="_blank">http://abs-telecom.com/</a></div></div></div>
</div></font></span></div></div>
<br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr">Alexandru Covalschi<br>ABRISS-Solutions<div>VoIP engineer and system administrator<br>phone: <a href="tel:%2B37367398493" value="+37367398493" target="_blank">+37367398493</a><br>web: <a href="http://abs-telecom.com/" target="_blank">http://abs-telecom.com/</a></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr">Alexandru Covalschi<br>ABRISS-Solutions<div>VoIP engineer and system administrator<br>phone: <a href="tel:%2B37367398493" value="+37367398493" target="_blank">+37367398493</a><br>web: <a href="http://abs-telecom.com/" target="_blank">http://abs-telecom.com/</a></div></div></div>
</div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr">Alexandru Covalschi<br>ABRISS-Solutions<div>VoIP engineer and system administrator<br>phone: <a href="tel:%2B37367398493" value="+37367398493" target="_blank">+37367398493</a><br>web: <a href="http://abs-telecom.com/" target="_blank">http://abs-telecom.com/</a></div></div></div>
</div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Alexandru Covalschi<br>ABRISS-Solutions<div>VoIP engineer and system administrator<br>phone: +37367398493<br>web: <a href="http://abs-telecom.com/" target="_blank">http://abs-telecom.com/</a></div></div></div>
</div>