[sr-dev] git:3.1: userblacklist(k): fix some doc errors, pointed out from Daniel Vukicevic, daniel at vukicevic dot com

Henning Westerholt hw at kamailio.org
Mon Apr 23 18:29:28 CEST 2012


Module: sip-router
Branch: 3.1
Commit: 8876b77bd3a577138818f0c5780ef1c873f188a5
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8876b77bd3a577138818f0c5780ef1c873f188a5

Author: Henning Westerholt <hw at kamailio.org>
Committer: Henning Westerholt <hw at kamailio.org>
Date:   Mon Apr 23 18:21:46 2012 +0200

userblacklist(k): fix some doc errors, pointed out from Daniel Vukicevic, daniel at vukicevic dot com
(cherry picked from commit 7fc5aa2c050379063212c4bb5f06697e8a97c665)

---

 modules_k/userblacklist/README                     |    6 +++---
 .../userblacklist/doc/userblacklist_admin.xml      |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules_k/userblacklist/README b/modules_k/userblacklist/README
index 3627c5c..ea6897c 100644
--- a/modules_k/userblacklist/README
+++ b/modules_k/userblacklist/README
@@ -202,7 +202,7 @@ table)
 ...
 $avp(i:80) = $rU;
 # rewrite the R-URI
-if (!check_user_blacklist("$avp(i:80)", "$avp(i:82)"))
+if (!check_user_blacklist("$avp(i:80)", "$avp(i:82)")) {
         sl_send_reply("403", "Forbidden");
         exit;
 }
@@ -223,7 +223,7 @@ table)
 ...
 $avp(i:80) = $rU;
 # rewrite the R-URI
-if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)"))
+if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)")) {
         # process request
         exit;
 }
@@ -238,7 +238,7 @@ if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)"))
 
    Example 1.4. check_blacklist usage
 ...
-if (!check_blacklist("global_blacklist")))
+if (!check_blacklist("globalblacklist")) {
         sl_send_reply("403", "Forbidden");
         exit;
 }
diff --git a/modules_k/userblacklist/doc/userblacklist_admin.xml b/modules_k/userblacklist/doc/userblacklist_admin.xml
index 28e5b84..d05ba7a 100644
--- a/modules_k/userblacklist/doc/userblacklist_admin.xml
+++ b/modules_k/userblacklist/doc/userblacklist_admin.xml
@@ -115,7 +115,7 @@ modparam("userblacklist", "use_domain", 0)
 ...
 $avp(i:80) = $rU;
 # rewrite the R-URI
-if (!check_user_blacklist("$avp(i:80)", "$avp(i:82)"))
+if (!check_user_blacklist("$avp(i:80)", "$avp(i:82)")) {
 	sl_send_reply("403", "Forbidden");
 	exit;
 }
@@ -142,7 +142,7 @@ if (!check_user_blacklist("$avp(i:80)", "$avp(i:82)"))
 ...
 $avp(i:80) = $rU;
 # rewrite the R-URI
-if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)"))
+if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)")) {
 	# process request
 	exit;
 }
@@ -164,7 +164,7 @@ if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)"))
 		<title><function>check_blacklist</function> usage</title>
 		<programlisting format="linespecific">
 ...
-if (!check_blacklist("global_blacklist")))
+if (!check_blacklist("globalblacklist")) {
 	sl_send_reply("403", "Forbidden");
 	exit;
 }




More information about the sr-dev mailing list