I'm currently looking at the redis module as a way of implementing
limits that are shared across multiple servers and noticed that for
every limit I create, two keys are set in redis.<br><br>One key is what
I'm expecting, with the name derived from the values I've supplied,
however the other key is the same thing but with the hostname prefixed.<br>
<br>Looking at the code, this could be either the hostname or the
switchname that is being prefixed (depending on if a switchname is set).<br><br>My
question is basically why is it doing this ? I would have assumed that
if a dialplan author wanted the key in question to have the hostname or
switch name, couldn't they just include it in the call to limit in the
dial plan ? <br>
<br>It also looks to me like there could be a bug where the hostname
prefixed key only gets incremented if there is a max set but will always
get decremented. <br><br>I'm just trying to work out if this is
intended behaviour and I have just misunderstood the purpose of the
module, or if it is worth trying to put a patch together. <br>
<br>Thanks,<br>Rodney