[OpenSER-Users] testing null AVPs

Ovidiu Sas sip.nslu at gmail.com
Mon Nov 12 18:00:30 CET 2007


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.


Regards,
Ovidiu Sas




More information about the sr-users mailing list