Hello,
On 7/11/11 5:14 PM, Vitaliy Aleksandrov wrote:
From the transformations documentation:
> {s.strip,len}
> Return string after removing starting 'len' characters. Parameter
'len' can be positive integer or pseudo-variable holding a positive integer.
I tried to use pvar holding len but got an error:
Jul 11 14:51:37 localhost /usr/sbin/kamailio[16905]: ERROR: pv
[pv_trans.c:434]: select cannot get p1
Jul 11 14:51:37 localhost /usr/sbin/kamailio[16905]: ERROR:<core>
[lvalue.c:351]: non existing right pvar
This is part of my config file:
$avp(varname) = '1';<---- pseudo variable holding
a positive integer
with the above code you store 1 as string, not as integer. Do no use any
kind of quotes for integer. The right way to do it is:
$avp(varname) = 1;
Try this way and see if it works this time.
Cheers,
Daniel
$avp(result) =
$(fU{s.strip,$avp(varname)});<---- s.strip
How can i use variables with transformation ?
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin:
http://asipto.com/u/kat
http://linkedin.com/in/miconda --
http://twitter.com/miconda