<p></p>
<p>I added the function <code>tls_set_connect_server_id(srvid)</code> in tls module trying to cover this kind of need to specify the server id for next tls connect in the event_route[tm:local-request], where you can set its value from the dispatcher route attributes.</p>
<p>Testing and feedback would be appreciated. I am closing this issue, in case of a problems, open a new one reporting what happens.</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/2591#issuecomment-811089454">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKVI6SITXBOL23KJPDTGMS5PANCNFSM4VADXGKQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKICH2IBMAP7SFNVETTGMS5PA5CNFSM4VADXGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGBMD4LQ.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/2591#issuecomment-811089454",
"url": "https://github.com/kamailio/kamailio/issues/2591#issuecomment-811089454",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>