<div dir="auto">Usually Kamailio tries to establish connection with the port was described in latest contact from client. Whydo you expect to call other port?<div dir="auto"><br></div><div dir="auto">And the second question - there are keepalive tcp mechanics available at the kamailio side and reuse port as well. Why not use it to avoid reistablishing connection?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 26 May 2022, 08:04 Kevin Browne, <<a href="mailto:ktjbrowne@gmail.com">ktjbrowne@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p style="margin:0px;white-space:pre-wrap">Hi, am looking for some specific Kamailio help i cant seem to find anywhere (<br><br></p><p style="margin:0px;white-space:pre-wrap">#</p><p style="margin:0px;white-space:pre-wrap">running Kamailio on Debian/buster ...<br><br></p><p style="margin:0px;white-space:pre-wrap">##</p><p style="margin:0px;white-space:pre-wrap">after receipt of tcp FIN, port is closed.</p><p style="margin:0px;white-space:pre-wrap">when signaling is required again from Kamailio side. </p><p style="margin:0px;white-space:pre-wrap">Kam is attempting SYN on FINd (closed) port.</p><p style="margin:0px;white-space:pre-wrap">this is rejected RST.</p><p style="margin:0px;white-space:pre-wrap">How to change SYN to re-establish tcp on new ephemeral port?</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">##</p><p style="margin:0px;white-space:pre-wrap">another description, same problem:
</p><p style="margin:0px;white-space:pre-wrap">FIN received from (external) cisco (call owner) due to port recycling, not to keep port open after x minutes. everything is as expected re ACKs and such.<br>When Kam wants to send REFER to cisco after the FIN, tcp attempts a SYN (as we'd expect) but sends SYN on old closed port.<br><br></p><p style="margin:0px;white-space:pre-wrap">##</p><p style="margin:0px;white-space:pre-wrap">Where to change this Kam/OS/other is where i'm attempting to identify, then figure how to change.<br></p><p style="margin:0px;white-space:pre-wrap">Thank you.</p></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>