No subject
Fri Jun 3 15:33:31 CEST 2011
> {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
$avp(result) = $(fU{s.strip,$avp(varname)}); <----
s.strip
How can i use variables with transformation ?
--20cf3054a5a5894f2a04a7cc973d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div>From the transformations documentation:</div><blockquote class=3D"gmai=
l_quote" style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; m=
argin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204,=
204); border-left-style: solid; padding-left: 1ex; ">
{s.strip,len}<br>Return string after removing starting 'len' charac=
ters. Parameter 'len' can be positive integer or pseudo-variable ho=
lding a positive integer.</blockquote><div><br></div><div>I tried to use pv=
ar holding len but got an error.</div>
<div><br></div><div><div>Jul 11 14:51:37 localhost /usr/sbin/kamailio[16905=
]: ERROR: pv [pv_trans.c:434]: select cannot get p1=A0</div><div>Jul 11 14:=
51:37 localhost /usr/sbin/kamailio[16905]: ERROR: <core> [lvalue.c:35=
1]: non existing right pvar=A0</div>
</div><div><br></div><div>This is part of my config file:</div><div>=A0 =A0=
=A0 =A0 $avp(varname) =3D '1'; =A0 =A0 =A0 =A0 =A0 =A0<---- pse=
udo variable holding a positive integer</div><div><div>=A0 =A0 =A0 =A0 $avp=
(result) =3D $(fU{s.strip,$avp(varname)}); =A0 =A0 =A0 =A0 =A0 =A0<---- =
s.strip</div>
</div><div><br></div><div>How can i =A0use variables with transformation ?<=
/div>
--20cf3054a5a5894f2a04a7cc973d--
More information about the sr-users
mailing list