<p></p>
<h3>Description</h3>
<p>I use TCP sockets to relay calls to backend servers.<br>
Also, I have enabled <code>tcp_reuse_port</code> and enabled <code>socket</code> attribute in dispatcher settings.<br>
INVITE messages to backend servers are now properly send from port 5060.</p>
<h3>Expected behavior</h3>
<p>For all messages are used the same TCP socket and same source port for all messages (including  OPTIONS).</p>
<h4>Actual observed behavior</h4>
<p>But initial OPTIONS (before the first call send) uses a random source port.</p>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<p>used current <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/c503d2bd31a580138a67f1d4a265ccde5791d271/hovercard" href="https://github.com/kamailio/kamailio/commit/c503d2bd31a580138a67f1d4a265ccde5791d271"><tt>c503d2b</tt></a> with small customization.</p>
<ul>
<li><strong>Operating System</strong>:<br>
aarch64</li>
</ul>
<pre><code>[root@sbc-a0 ~]# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2853">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMVINDGFRL5BLN6UBTUB5EPTANCNFSM5EAE773Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZMQ3RLVCP5HPHAEZTLUB5EPTA5CNFSM5EAE7732YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4O26BXLQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2853",
"url": "https://github.com/kamailio/kamailio/issues/2853",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>