[OpenSIPS-Users] ratelimit per method per subscriber
Jeff Pyle
jpyle at fidelityvoice.com
Mon Nov 9 18:32:44 CET 2009
Ovidiu,
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:
> http://www.opensips.org/html/docs/modules/devel/ratelimit.html#id228413
> 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:
> http://www.opensips.org/html/docs/modules/devel/ratelimit.html#id271306
> If you need more then 16 pipes, you will need to recompile.
>
> Hope this helps.
> Regards,
> Ovidiu Sas
>
> On Mon, Nov 9, 2009 at 11:31 AM, Jeff Pyle <jpyle at fidelityvoice.com> wrote:
>> Hello,
>>
>> 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.
>>
>>
>> Regards,
>> Jeff
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list