[sr-dev] [kamailio/kamailio] siptrace: added extra params to $siptrace() pseudo-variable (#2777)

Daniel-Constantin Mierla notifications at github.com
Fri Jun 11 09:14:08 CEST 2021


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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210611/04a97f9f/attachment.htm>


More information about the sr-dev mailing list