Hello I’m trying to use “htable” module with the example to block a user with three time s failed password.
When a REGISTER arrives I’m getting this error : Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: <core> [lvalue.c:358]: setting pvar failed Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: <core> [lvalue.c:411]: assignment failed at pos: (322,54-322,81) Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: <core> [lvalue.c:358]: setting pvar failed Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: <core> [lvalue.c:411]: assignment failed at pos: (328,47-328,49) The lines pointing the error are these : 312 if ( !radius_www_authorize("10.0.0.208") ) 313 { 314 switch ($retcode) { 315 case -1: 316 xlog("L_INFO","authentication failed from radius\n"); 317 if($sht(a=>$au::auth_count) == "null") 318 { 319 $sht(a=>$au::auth_count) = 0; 320 } 321 $sht(a=>$au::auth_count) = $sht(a=>$au::auth_count) + 1; 322 if($sht(a=>$au::auth_count) == 3) 323 { 324 xlog("L_INFO","auth failed 3rd time - src ip: $si\n"); 325 } 326 $sht(a=>$au::last_auth) = $Ts; 327 break; 328 case -5: 329 sl_send_reply("403", "Forbidden"); 330 exit; 331 } 332 www_challenge("10.0.0.208", "1"); 333 exit; 334 } What could be the problem? Thanks in advance. Regards, Ricardo.-
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users