[SR-Users] $null + 0 is not int

Juha Heinanen jh at tutpro.com
Sun Dec 1 02:35:01 CET 2019


Why is it that $null + 0 is 0 but not int?  What is it?

-- Juha

    $avp(test) = $null + 0;
    if (is_int("$avp(test)"))
        INFO(test $avp(test) IS int);
    else
        INFO(test $avp(test) IS NOT int);

Dec  1 02:46:01 salmon /usr/bin/sip-proxy[10138]: INFO: test 0 IS NOT int



More information about the sr-users mailing list