[OpenSER-Users] testing null AVPs

Daniel-Constantin Mierla daniel at voice-system.ro
Mon Nov 12 18:16:35 CET 2007


Hello,

On 11/12/07 19:00, Ovidiu Sas wrote:
> Hi all,
>
> How should we test for non existing AVPs?
> method 1: is_avp_set("$avp(i:123)")
> method 2: $(avp(i:123)) != null
>
> Both of the above methods are working.
> Is there a difference between them?
> If no, then maybe is_avp_set should be deprecated.
>   
is_avp_set() gets some other parameters, as flags, that cannot be used 
in direct comparison.
http://www.openser.org/docs/modules/devel/avpops.html#AEN590

Daniel

>
> Regards,
> Ovidiu Sas
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the sr-users mailing list