Hi,

How would one go about using hiredis as limit backend for a counter object in JS dialplan?


Without mentioning "default" hiredis profile 

session.execute("limit","hiredis campaign 2251");

EXECUTE sofia/external/8888556@192.168.1.1:3456 limit(hiredis campaign 2251)

[DEBUG] switch_limit.c:126 incr called: campaign_2251 max:-1, interval:0

[ERR] mod_hiredis.c:148 hiredis: Unable to locate profile[campaign]



with "default" profile mentioned in execute

session.execute("limit","hiredis default campaign 2251");

EXECUTE sofia/external/8888556@192.168.1.1:3456 limit(hiredis default campaign 2251)

2019-10-23 18:16:31.923866 [DEBUG] switch_limit.c:126 incr called: default_campaign max:2251, interval:0


Regards,