[OpenSER-Devel] Error assigning an AVP other AVP with NULL value
Raúl Alexis Betancor Santana
rabs at dimension-virtual.com
Wed Jul 2 12:02:47 CEST 2008
El Miércoles, 2 de Julio de 2008 10:45, Iñaki Baz Castillo escribió:
> Hi, doing this is perfectly valid:
>
> $avp(s:aaa) = null;
>
> And doing this too:
>
> $avp(s:bbb) = $avp(s:aaa);
>
> But doing them together gets an error:
>
> $avp(s:aaa) = null;
> $avp(s:bbb) = $avp(s:aaa);
>
> -----
> ERROR:core:do_assign: no value in right expression
> ERROR:core:do_assign: error at line: 263
> -----
>
> It makes no sense, if I can set null for an AVP, and I can assign an AVP
> other AVP value, why can't I assign an AVP with null value to other AVP?
Just because when you assing null to an AVP you are destroying it, there is a
thread some days ago explaing that.
--
Saludos.
Raúl Alexis Betancor Santana
Dimensión Virtual S.L.
More information about the Devel
mailing list