defined($avp(foo)) can be used to test if avp $avp(foo) has been defined. i looked through kamailio wiki, but didn't find defined function documented anywhere. -- juha