Hello,
try this setting, it will force to re-use the same TCP port:
https://www.kamailio.org/wiki/cookbooks/5.3.x/core#tcp_reuse_port
Cheers,
Henning
--
Henning Westerholt –
https://skalatan.de/blog/
Kamailio services –
https://gilawa.com
From: sr-users <sr-users-bounces@lists.kamailio.org>
On Behalf Of Amarnath K
Sent: Friday, April 3, 2020 8:40 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Query on force_send_socket
Hi All,
I'm using Kamailio version 5.1.9.
In cfg file have routing to send out SIP messages from Kamailio stack. In this routing logic added
force_send_socket("tcp:192.168.40.10:5060");
forward()
I'm expecting the send port should be from 5060, but it always pick random port to send out message.
my requirement is to send SIP messages from 5060 port instead of picking random port.
Regards,
Amarnath