Module: sip-router
Branch: master
Commit: 7fc5aa2c050379063212c4bb5f06697e8a97c665
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7fc5aa2…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)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
---
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 2227526..6089c60 100644
--- a/modules_k/userblacklist/README
+++ b/modules_k/userblacklist/README
@@ -220,7 +220,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;
}
@@ -241,7 +241,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;
}
@@ -256,7 +256,7 @@ if (!check_user_whitelist("$avp(i:80)",
"$avp(i:82)"))
Example 1.5. 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 910b930..2900a02 100644
--- a/modules_k/userblacklist/doc/userblacklist_admin.xml
+++ b/modules_k/userblacklist/doc/userblacklist_admin.xml
@@ -140,7 +140,7 @@ modparam("userblacklist", "match_mode", 128)
...
$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;
}
@@ -167,7 +167,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;
}
@@ -189,7 +189,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;
}