Module: kamailio
Branch: master
Commit: 43f819497a60c434b8630fe37e330eaccd894c15
URL: 
https://github.com/kamailio/kamailio/commit/43f819497a60c434b8630fe37e330eaccd894c15

Author: pepelux <pepel...@gmail.com>
Committer: pepelux <pepel...@gmail.com>
Date: 2025-08-26T21:24:02+02:00

secfilter: Documentation updated regarding country filtering [skip ci]

---

Modified: src/modules/secfilter/doc/secfilter_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/43f819497a60c434b8630fe37e330eaccd894c15.diff
Patch: 
https://github.com/kamailio/kamailio/commit/43f819497a60c434b8630fe37e330eaccd894c15.patch

---

diff --git a/src/modules/secfilter/doc/secfilter_admin.xml 
b/src/modules/secfilter/doc/secfilter_admin.xml
index 85782bb9330..300b343aafb 100644
--- a/src/modules/secfilter/doc/secfilter_admin.xml
+++ b/src/modules/secfilter/doc/secfilter_admin.xml
@@ -371,8 +371,8 @@
 
         if (geoip2_match("$si", "src")) {
                 secf_check_country($gip2(src=>cc));
-                if ($avp(secfilter) != 2) {
-                        xlog("L_ALERT", "$rm from $si blocked because Country 
'$gip2(src=>cc)' is not whitelisted");
+                if ($? != 2) {
+                        xdbg("$rm from $si blocked because Country 
'$gip2(src=>cc)' is not whitelisted");
                         exit;
                 }
         }

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to