By default, Kamailio is reusing the tcp connection when possible.
Again, about the local port for tcp connections, read more about tcp protocol and how a
connection is identified (some references about ephemeral ports are also there) --
practically it is the tcp stack implementation/operating system kernel that does the
selection of the local port, impossible to ensure it from user space.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1532#issuecomment-398745383