From e42a5e35c486127f9131b0b522fde136a7465825 Mon Sep 17 00:00:00 2001 From: lazedo Date: Fri, 27 May 2016 14:10:28 +0100 Subject: [PATCH] HELP-22885 anti-flood role may block media servers --- kamailio/antiflood-role.cfg | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kamailio/antiflood-role.cfg b/kamailio/antiflood-role.cfg index 29284d8..9adb4e6 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); }