[OpenSIPS-Users] ratelimit per method per subscriber
bogdan at voice-system.ro
Sun Nov 15 21:04:36 CET 2009
Maybe you can use the memcache support (with variable names) to keep the
information you need for counting and limiting traffic based on whatever
So, using variables in cache, you can implement (directly in script)
some custom limiting alg.
Jeff Pyle wrote:
> I'd like to be able to impose a limit on each of my subscribers. I could
> have thousands of subscribers. Apparently this module isn't appropriate for
> that kind of application.
> - Jeff
> On 11/9/09 12:28 PM, "Ovidiu Sas" <osas at voipembedded.com> wrote:
>> Hello Jeff,
>> Since you want to limit only the INVITEs, just go with the forced
>> limiting by forcing a known pipe:
>> Define a pipe for each IP and the map the IP to a pipe before ratelimiting.
>> The only thing that you need to be aware are the maximum number of pipes:
>> If you need more then 16 pipes, you will need to recompile.
>> Hope this helps.
>> Ovidiu Sas
>> On Mon, Nov 9, 2009 at 11:31 AM, Jeff Pyle <jpyle at fidelityvoice.com> wrote:
>>> It appears our options today for limiting traffic quantity into Opensips are
>>> the pike and ratelimit modules. As my oversimplified minds understand it,
>>> pike works by limiting all traffic based on source IP. Ratelimit works by
>>> limiting all traffic based on method.
>>> Is there a way with ratelimit to limit traffic based on method per source
>>> IP? For example, can I specify a usr_preference that indicates calls
>>> (INVITEs) per second per subscriber?
>>> I've got a functioning ratelimit configuration to limit the amount of
>>> INVITEs into the proxy based on the example configurations but I don't see
>>> how to do it based on subscriber/source IP like pike does.
>>> Users mailing list
>>> Users at lists.opensips.org
>> Users mailing list
>> Users at lists.opensips.org
> Users mailing list
> Users at lists.opensips.org
More information about the Users