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:
*
https://www.kamailio.org/wiki/cookbooks/5.5.x/transformations#sunbracket
I am thinking from the perspective that host/domain parts of URI variables just return the
value as it is, like $rd returns `host` as it is in `sip:user@host`.
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 `proto:host:port`.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2777#issuecomment-859339434