[OpenSER-Devel] Error assigning an AVP other AVP with NULL value

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Jul 2 11:56:26 CEST 2008


Hi Iñaki,

Assigning NULL to an AVP will remove the AVP - that AVP will not exist 
anymore. So the second assignment will simply fail as there is no right 
value (the source AVP does not exists).

Regards,
Bogdan

Iñaki Baz Castillo wrote:
> 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?
>
> Should I open a bug report for this?
>
> Regards.
>
>
>   




More information about the Devel mailing list