<p></p>
<p>What global parameters did you set for kamailio?</p>
<p>If the issue is reproducible, can you list the tcp connections with:</p>
<pre><code>kamctl rpc core.tcp_list
</code></pre>
<p>and see if what is listed there matches the connection expected to be used?</p>
<p>Also, I understand this happens when forwarding requests, not for routing back replies?</p>
<p>Given that tcp connection id is unique, it would mean that the connection is not found if the search matches on id but not on port, so a new connection is created?</p>

<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/pull/2307#issuecomment-624098104">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJRY6Q5MOWK7GKOYDLRQAQ57ANCNFSM4MSZFYDA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJDN7CD3LBYOA62RGTRQAQ57A5CNFSM4MSZFYDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEUZPWOA.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/pull/2307#issuecomment-624098104",
"url": "https://github.com/kamailio/kamailio/pull/2307#issuecomment-624098104",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>