<p></p>
<p>I was half way through writing a less detailed version of a very similar issue i am having too, having to send options presenting a specific servername and cert</p>
<p>same environment as well (ubuntu 18.04, kam 5.5.0)</p>
<p>I have noticed that the xavp sni settings seems to only work on one thread as well if you loop the message back and set via request_route</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-854073385">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNKQ2Z25YHZBDHUTF3TQ7ABFANCNFSM46BFDBOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJ44UP6VU5FNHQQTZTTQ7ABFA5CNFSM46BFDBOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGLUCAKI.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-854073385",
"url": "https://github.com/kamailio/kamailio/issues/2760#issuecomment-854073385",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>