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 <[email protected]> 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 > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
