<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><div>Hi All,</div><div><span class="yiv1949567040Apple-tab-span" style="white-space: pre; ">        </span>I have been taking a look at the ratelimit module to limit CPS as suggested by a few prior posts. I believe I have the gist of it (it's a key/value store w/ specialized algorithms to calculate when a limit is reached), but I was wondering if someone could explain best practices for removing values from the key/value store?</div><div><span class="yiv1949567040Apple-tab-span" style="white-space: pre; ">        </span>Specifically I was planning on limiting CPS by entering a string for my key that represents the "second" and increment. So something like this: </div><div><br></div><div>rl_check("080101", 5, <some algorithm>)</div><div><br></div><div>We could also add a trunk_id to the front of that string to limit CPS on a
particular trunk or IP or whatever. Then when a call comes in at that specific second we increment the counter and check to see if there have already been 5 calls that second.</div><div><br></div><div>What I'm not clear on looking at the module description (http://www.opensips.org/html/docs/modules/devel/ratelimit.html) is how I could destroy certain key/value pairs once I don't need them anymore (because the second is over). I do not want to have 3600 values an hour sitting in memory.</div><div><br></div><div>Anyways, if someone has used ratelimit in a similar fashion or may understand it better than I, I'd appreciate any feedback.</div><div><br></div><div>Thanks!</div><div>Will</div><div><br></div><div>PS, Apologies if this is a duplicate. I originally posted w/o being a member of the lists. I joined and then reposted assuming my original would not be posted.</div><div><br></div></div></div></body></html>