[OpenSIPS-Users] string transformation with avps formating
Alex Balashov
abalashov at evaristesys.com
Tue Jun 16 05:54:20 CEST 2009
Brett Nemeroff wrote:
> Hey All,
> I can't seem to get the format right here:
> $rU = $(rU{s.substr,$avp(s:nprefixlen),0});
This is possible with $var(...)s. Not sure about AVPs. I use it, it
works for me.
Now, what doesn't work is using nested transformations or arithmetical
operations on numerical transformation values. They won't be evaluated
properly. Have to assign them to an outside variable first. For
instance, can't do something like:
$(fU{s.substr,fU{s.len} - 10,10})
--
Alex Balashov
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (678) 237-1775
More information about the Users
mailing list