[Kamailio-Devel] htable related syntax error

Juha Heinanen jh at tutpro.com
Thu Jan 29 04:39:01 CET 2009


i tried to play with htable, but get syntax error when accessing
htable.  with code in readme exemple:

    if($sht(a=>$au::auth_count)==3)
    {
        if($sht(a=>$au::last_auth) > $Ts-900)  # *****
        {
            sl_send_reply("403", "Try later");
            exit;
        } else {
            $sht(a=>$au::auth_count) = 0;
        }
    }

kamailio complains about the line 64 marked with # ***** in above:

an 29 05:34:00 [30978] CRITICAL:core:yyerror: parse error in config file, line 655, column 64-65: syntax error
Jan 29 05:34:00 [30978] CRITICAL:core:yyerror: parse error in config file, line 655, column 64-65: bad command!)
Jan 29 05:34:00 [30978] CRITICAL:core:yyerror: parse error in config file, line 655, column 64-65: bad command!)
Jan 29 05:34:00 [30978] CRITICAL:core:yyerror: parse error in config file, line 655, column 65-68: bad command!)

this with today's trunk.  htable module has been  loaded and i have line 

modparam("htable", "htable", "a=>size=4;")

in config.

-- juha



More information about the Devel mailing list