Usually Kamailio tries to establish connection with the port was described in latest contact from client. Whydo you expect to call other port?

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?

On Thu, 26 May 2022, 08:04 Kevin Browne, <ktjbrowne@gmail.com> wrote:

Hi, am looking for some specific Kamailio help i cant seem to find anywhere (

#

running Kamailio on Debian/buster ...

##

after receipt of tcp FIN, port is closed.

when signaling is required again from Kamailio side.

Kam is attempting SYN on FINd (closed) port.

this is rejected RST.

How to change SYN to re-establish tcp on new ephemeral port?


##

another description, same problem:

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.
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.

##

Where to change this Kam/OS/other is where i'm attempting to identify, then figure how to change.

Thank you.

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users