[SR-Users] How to correctly check if the variable is set?
Brandon Armstead
brandon at cryy.com
Mon Jan 14 17:50:23 CET 2013
I believe what you are looking for is $null
if($avp(s:test) == $null){
}
On Mon, Jan 14, 2013 at 3:59 AM, 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130114/6fad64da/attachment-0001.htm>
More information about the sr-users
mailing list