[SR-Users] Query on force_send_socket

Henning Westerholt hw at skalatan.de
Fri Apr 3 09:00:02 CEST 2020


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<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Amarnath K
Sent: Friday, April 3, 2020 8:40 AM
To: sr-users at 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<http://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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200403/87d2bbdc/attachment.html>


More information about the sr-users mailing list