<p></p>
<p>As I understood from the previous comment, it is same target address, but you want different tls connections with different certs.</p>
<p>SIP specifications decouple transport layer from SIP traffic, there is no relation between a SIP request/transaction/dialog and transport layer (in this case the TLS connection). Even more the specs recommend connection reuse, which is done here.</p>
<p>Practically, if the target is the same, then kamailio creates a single connection to it and it will be used for all traffic sent to the target, irrelevant of the SIP From headers or different dispatcher groups, a.s.o.</p>
<p>Looking at dispatcher records provided by <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/arkadiam/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/arkadiam">@arkadiam</a>, seems to be same case for him.</p>
<p>You can try to have different listen sockets for domains, if you have a few of them should be ok.</p>
<p>Otherwise, the tcp (tls) connection management code has to be changed, it may impact several components. It has to be coded in C.</p>
<p>Over all, it seems not to be an issue related to <code>ksr_tls_set_connect_server_id()</code>, if no other new information shows up soon to indicate a different conclusion, this issue can be closed.</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/issues/2760#issuecomment-857681699">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKXEFI3LS2ROB3PVDTTR5SCBANCNFSM46BFDBOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMBJV72D4WAE7S46E3TR5SCBA5CNFSM46BFDBOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGMPS6IY.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/2760#issuecomment-857681699",
"url": "https://github.com/kamailio/kamailio/issues/2760#issuecomment-857681699",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>