<p></p>
<p>Does it make sense to return ipv6 host without square brackets instead of the full value? There is {s.unbracket} transformation if one needs it to remove the brackets:</p>
<ul>
<li><a href="https://www.kamailio.org/wiki/cookbooks/5.5.x/transformations#sunbracket" rel="nofollow">https://www.kamailio.org/wiki/cookbooks/5.5.x/transformations#sunbracket</a></li>
</ul>
<p>I am thinking from the perspective that host/domain parts of URI variables just return the value as it is, like $rd returns <code>host</code> as it is in <code>sip:user@host</code>.</p>
<p>Maybe you can add another variable like $siptrace(src_hostip) which return bare IP, without brackets for IPv6 case and $siptrace(src_host) will return the full value as it is in <code>proto:host:port</code>.</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/pull/2777#issuecomment-859339434">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNXEVBFBCW35R3T2I3TSGZUBANCNFSM46O4OL4Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMS2TCQFH5FFOENBNTTSGZUBA5CNFSM46O4OL42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGM4HVKQ.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/pull/2777#issuecomment-859339434",
"url": "https://github.com/kamailio/kamailio/pull/2777#issuecomment-859339434",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>