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

Klaus Darilion klaus.mailinglists at pernau.at
Wed Jul 2 12:05:15 CEST 2008


IMO this whole NULL stuff with AVPs, variables and PVs is really 
annoying. We should try to find a common, intuitive behavior for the 
next release.

regards
klaus

Bogdan-Andrei Iancu schrieb:
> 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.
>>
>>
>>   
> 
> 
> _______________________________________________
> Devel mailing list
> Devel at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/devel



More information about the Devel mailing list