[Kamailio-Users] avpops OR sqlops

Alex Balashov abalashov at evaristesys.com
Mon Dec 21 21:51:39 CET 2009


On 12/21/2009 03:50 PM, Henning Westerholt wrote:
> On Mon, December 21, 2009 5:37 pm, Alex Balashov wrote:
>> Try:  if(is_avp_set("$avp(s:lnp_prefix)"))
>
> Hey Alex,
>
> also possible is to use it: if (! $avp(s:lnp_prefix)) which is shorter and
> don't rely on the avpops module to test for null. (In sr the "defined"
> operator can be used for the same purpose.

I thought that would evaluate the numerical expression value of the AVP, 
not whether it is null?

-- 
Alex Balashov - Principal
Evariste Systems
Web     : http://www.evaristesys.com/
Tel     : (+1) (678) 954-0670
Direct  : (+1) (678) 954-0671




More information about the sr-users mailing list