<p>Sergey, you can use the $fs variable for this purpose:<br>
$fs = $proto + ":" + $Ri + ":5060"</p>
<p>But anyway, many old functions are string only and not all have an equivalent method that supports pseudo variables.... I think all legacy functions need a rework allowing pseudo-variables as parameter.</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/2145?email_source=notifications&email_token=ABO7UZN5YU6NYSHVTN2AFL3QVL4CTA5CNFSM4JQ3QQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFAWHQQ#issuecomment-557933506">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJB6GTCOFLYS7LCARDQVL4CTANCNFSM4JQ3QQDQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNMUUSSOWHHCBXE7DTQVL4CTA5CNFSM4JQ3QQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFAWHQQ.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/2145?email_source=notifications\u0026email_token=ABO7UZN5YU6NYSHVTN2AFL3QVL4CTA5CNFSM4JQ3QQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFAWHQQ#issuecomment-557933506",
"url": "https://github.com/kamailio/kamailio/issues/2145?email_source=notifications\u0026email_token=ABO7UZN5YU6NYSHVTN2AFL3QVL4CTA5CNFSM4JQ3QQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFAWHQQ#issuecomment-557933506",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>