[Kamailio-Devel] htable related syntax error

Daniel-Constantin Mierla miconda at gmail.com
Thu Jan 29 11:38:58 CET 2009


Hello,

it is not related to htable, the comparison does not accept expression 
in right side. This limitation shall be removed by the new config 
interpretor written by Andrei last month for sip-router.

I fixed the example in htable readme.

Cheers,
Daniel

On 01/29/2009 05:39 AM, Juha Heinanen wrote:
> 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
>
> _______________________________________________
> Kamailio (OpenSER) - Devel mailing list
> Devel at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/devel
>   

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list