diff --git a/kamailio/antiflood-role.cfg b/kamailio/antiflood-role.cfg index bef50d4..4be1769 100644 --- a/kamailio/antiflood-role.cfg +++ b/kamailio/antiflood-role.cfg @@ -17,7 +17,9 @@ modparam("pike", "remove_latency", ANTIFLOOD_RATE_EXPIRE) route[ANTIFLOOD_RATE_LIMIT] { - if (has_totag() || isflagset(FLAG_TRUSTED_SOURCE)) { + if (has_totag() + || isflagset(FLAG_TRUSTED_SOURCE) + || isflagset(FLAG_INTERNALLY_SOURCED)) { return; } @@ -31,7 +33,9 @@ route[ANTIFLOOD_RATE_LIMIT] route[ANITFLOOD_AUTH_LIMIT] { - if (isflagset(FLAG_TRUSTED_SOURCE)) { + if (has_totag() + || isflagset(FLAG_TRUSTED_SOURCE) + || isflagset(FLAG_INTERNALLY_SOURCED)) { return(1); }