[SR-Users] How to correctly check if the variable is set?
Mino Haluz
mino.haluz at gmail.com
Mon Jan 14 15:16:40 CET 2013
and how to check null value taken from database?
$dbr(ra=>[0,0]) == ?
On Mon, Jan 14, 2013 at 1:44 PM, Alex Balashov <abalashov at evaristesys.com>wrote:
> if(defined $var(x))
>
> Or, if checking for empty value:
>
> if(strempty($var(x))
>
> Mino Haluz <mino.haluz at gmail.com> wrote:
>
> >Hi,
> >
> >how should I check if the value is set?
> >
> >if ($avp(s:test) == "") {
> >
> >or is there any null keyword ? If so, does it work for $avp, $sht, $var
> >and
> >$shv ?
> >
> >Thanks,
> >
> >Mino
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> >sr-users at lists.sip-router.org
> >http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Sent from my mobile, and thus lacking in the refinement one might expect
> from a fully-fledged keyboard.
>
> Alex Balashov - Principal
> Evariste Systems LLC
> 235 E Ponce de Leon Ave
> Suite 106
> Decatur, GA 30030
> United States
> Tel: +1-678-954-0670
> Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130114/73802850/attachment.htm>
More information about the sr-users
mailing list