[SR-Users] set source port of TCP socket in Contact header

Henning Westerholt hw at gilawa.com
Wed Aug 3 13:27:36 CEST 2022


Hello,

Not sure if I completely understand the issue.
Kamailio will either use a random source port, or the port 5060 if you specify the tcp_reuse_port core configuration.

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 Maarten Ureel
Sent: Tuesday, August 2, 2022 4:53 PM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] set source port of TCP socket in Contact header

Hello

I want to set the correct source port in an outgoing message over TCP. Is it possible? I can't find a pseudo-variable for this.
Currently we have no port number in the contact header, and the other party is sending their BYE to port 5060 instead of to the source port from which the outgoing TCP connection was made.



Regards
Maarten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220803/e82336fd/attachment.htm>


More information about the sr-users mailing list