Re: [SR-Users] transformations {s.rm,match}

2015-12-11 Thread Daniel-Constantin Mierla
Hello, iirc, there is a transformation for regexp replacing, but not sure it does again for all recurences or accepts the typical subst flags. Other solutions: - avp_subst() - subst_user() (backup r-uri username in a var, set username to the value you want to change, do the subst, then get the

Re: [SR-Users] Transformations

2013-04-19 Thread Victor V. Kustov
В Thu, 18 Apr 2013 13:56:18 +0200 Daniel-Constantin Mierla пишет: > Anyhow, I would recommend to use s.select transformation to get the > ip bytes: > > $var(i1) = $(si{s.select,0,.}); > ... > $var(i4) = $(si{s.select,4,.}); > > Then use this variables to compute the big int value. Thanks for t

Re: [SR-Users] Transformations

2013-04-18 Thread Daniel-Constantin Mierla
Hello, the transformation for avp has to be after the parenthesis around the name: $(avp(x){...}) Anyhow, I would recommend to use s.select transformation to get the ip bytes: $var(i1) = $(si{s.select,0,.}); ... $var(i4) = $(si{s.select,4,.}); Then use this variables to compute the big int