[OpenSIPS-Users] rl_check, limit parameter as a variable
    Alexey Kazantsev 
    kurgan-rus at inbox.ru
       
    Wed May  8 12:35:40 EDT 2019
    
    
  
Hi Ben!
Sure, that was the clue! Thank you.
NOT working:
		
		cache_fetch("local", "incoming:ratelimit", $var(rl));
		xlog("L_NOTICE", "cfg_line $cfg_line ; var(rl) is $var(rl)");
		if (!rl_check("pipe_$rU", "$var(rl{s.int})", "SBT")) {
NOT working:
		cache_fetch("local", "incoming:ratelimit", $(var(rl){s.int}));
		xlog("L_NOTICE", "cfg_line $cfg_line ; var(rl) is $var(rl)");
		if (!rl_check("pipe_$rU", "$var(rl)", "SBT")) {
NOT working:
		cache_fetch("local", "incoming:ratelimit", $var(rl));
		xlog("L_NOTICE", "cfg_line $cfg_line ; var(rl) is $var(rl)");
		$var(rlim) = $(var(rl){s.int});
		if (!rl_check("pipe_$rU", "$var(rl)", "SBT")) {
WORKING:
		cache_fetch("local", "incoming:ratelimit", $var(rl));
		xlog("L_NOTICE", "cfg_line $cfg_line ; var(rl) is $var(rl)");
		if (!rl_check("pipe_$rU", "$(var(rl){s.int})", "SBT")) {
-----------------------------------------------
BR, Alexey
http://alexeyka.zantsev.com/
    
    
More information about the Users
mailing list