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

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


Hi Klaus,

yes, the the meaning and the processing of NULL value is a bit 
inconsistent in regards to AVPs and PVs....I tried last year with Juha 
to make some light in ops involving the NULL values, but it was a 
partial success..

Regards,
Bogdan

Klaus Darilion wrote:
> 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