[OpenSIPS-Users] transformation
Mike Claudi Pedersen
mike.pedersen at ipnordic.dk
Fri Jun 6 09:20:04 CEST 2014
if i want to transfrom a value like this
$var(FROMIP) = "xxx.xxx.xxx.xxx"
some transformation to allow me to cut the ip after the 3rd "." (full stop)
im thinking something like {s.select,x,y}
but im not sure how to define i want to use the 3rd full stop instead of
the first,
if i say $(var(FROMIP){s.select,-1,.}) or $(var(FROMIP){s.select,0,.}) both
seperates at the first "."
the result should be something like
$var(SHORTIP) = "xxx.xxx.xxx"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140606/009e48fc/attachment.htm>
More information about the Users
mailing list