[SR-Users] Limit the number of requests per second based on the user

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 29 21:31:41 CEST 2014


do you need with different limits for each user and method? Considering 
to add a default limit and algorithm for dynamic pipes that could be 
added at runtime, without prior definition.

Right now you can probably get it with htable.
- set a maximum lifetime for items to the period you want to count
- for each request you add an item with some random key and value being 
the user
- use $sthcv(...) to count the number of items that have the value of 
the user


On 29/04/14 13:41, Sebastian Damm wrote:
> Hi,
> I'm looking for a solution to limit the number of call initiations or 
> OPTIONS packets or REGISTER packets per user. Neither pike, nor 
> pipelimit or ratelimit give me the possibility to do this. Limiting it 
> based on the source IP is not an option in our case.
> Is there a module I can use? Or is this generally a bad idea?
> Best Regards,
> Sebastian
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140429/25c7ffaf/attachment.html>

More information about the sr-users mailing list