<p></p>
<h3>Description</h3>
<p>In my config used <code>msrp</code> and <code>tls</code> modules.<br>
When MSRP client is connected using TCP socket (not TLS), then <code>$msrp(srcaddr)</code> always returns "msrps" URL.<br>
When used TCP socket, then must be returned "msrp" URL. And no matter TLS module is loaded or not.</p>
<p><a href="https://github.com/kamailio/kamailio/blob/d737c876cc36b4de802da77dfcd361323ad7cd8e/src/modules/msrp/msrp_vars.c#L278-L285">Relevant code</a></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/2881">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZP2ISLPHZJQYSKX663UGLQV3ANCNFSM5FYHXOWA">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/ABO7UZJER4YWZXIV3IZUCH3UGLQV3A5CNFSM5FYHXOWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4PHVITJQ.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/2881",
"url": "https://github.com/kamailio/kamailio/issues/2881",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>