[SR-Users] Pipelimit
Fred Posner
fred at palner.com
Wed Jul 8 14:09:29 CEST 2015
I know in ratelimit, you can define a method within queues... for
example, modparam("ratelimit", "queue", "3:INVITE") to match on INVITE
method.
With pipelimit, is the method called from the config, such as:
if(is_method("INVITE")) {
# Checking limit on INVITE
if (!pl_check("$au", "traildrop", "$var(limita)")) {
pl_drop();
exit;
}
}
if(is_method("REGISTER")) {
# Checking limit on REGISTER
if (!pl_check("$au", "traildrop", "$var(limitb)")) {
pl_drop();
exit;
}
}
--
Fred Posner
The Palner Group, Inc.
http://www.palner.com (web)
+1-503-914-0999 (direct)
More information about the sr-users
mailing list