[sr-dev] [kamailio/kamailio] s.substr transformation with negative offset and length greater than 1 not working (#1426)

Anthony Messina notifications at github.com
Sun Feb 4 03:58:14 CET 2018


According to https://www.kamailio.org/wiki/cookbooks/5.1.x/transformations (and I'm using 5.1), I should be able to do something like `$var(num)=$(fU{s.substr,-1,10})` and `$var(num)` should be `123456789` if `$fU` is `0123456789` (only the last 10 characters are displayed).  However, `$var(num)` ends up with only the last character of the substring, in this case, `9`.

-- 
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/issues/1426
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180203/ff1cb6da/attachment.html>


More information about the sr-dev mailing list