← Volver al índice de módulos

userblocklist

The userblocklist module allows Kamailio to handle blocklists on a per user basis. This information is stored in a database table, which is queried to decide if the number (more exactly, the request U
🛠️ Utilidades y Varios Kamailio 6.1 28 parámetros

Descripción general

The userblocklist module allows Kamailio to handle blocklists on a per user basis. This information is stored in a database table, which is queried to decide if the number (more exactly, the request URI user) is blocklisted or not. An additional functionality that this module provides is the ability to handle global blocklists. These lists are loaded on startup into memory, thus providing a better performance than the userblocklist case. These global blocklists are useful to allow only calls to certain international destinations, i.e. block all not allowlisted numbers. They could also be used to prevent the blocklisting of important numbers, as allowlisting is supported too. This is useful for example to prevent the customer from blocking emergency call number or service hotlines. The module exports four functions, check_blocklist, check_allowlist, check_user_blocklist and check_user_allowlist for usage in the configuration file. Furthermore it provides a RPC function to reload the global blocklist cache. Please note that only numerical strings for matching are supported at the moment (the used library supports this already, but it is not yet implemented in the module). Non-digits on the beginning of the matched string are skipped, any later non-digits will stop the matching on this position.

Documentación oficial: https://www.kamailio.org/docs/modules/stable/modules/userblocklist.html
Código fuente: https://github.com/kamailio/kamailio/tree/master/src/modules/userblocklist

Parámetros de configuración

ParámetroTipoDescripción
use_domain integer 3.2. match_mode (integer) 3.3. db_url (String) 3.4. userblocklist_table (String) 3.5. userblocklist_id_col (string) 3.6. userblocklist_username_col (string) 3.7. userblocklist_domain_col (string) 3.8.
match_mode integer 3.3. db_url (String) 3.4. userblocklist_table (String) 3.5. userblocklist_id_col (string) 3.6. userblocklist_username_col (string) 3.7. userblocklist_domain_col (string) 3.8. userblocklist_prefix_col
db_url String 3.4. userblocklist_table (String) 3.5. userblocklist_id_col (string) 3.6. userblocklist_username_col (string) 3.7. userblocklist_domain_col (string) 3.8. userblocklist_prefix_col (string) 3.9. userblo
userblocklist_table String 3.5. userblocklist_id_col (string) 3.6. userblocklist_username_col (string) 3.7. userblocklist_domain_col (string) 3.8. userblocklist_prefix_col (string) 3.9. userblocklist_allowlist_col (string) 3.10
userblocklist_id_col string 3.6. userblocklist_username_col (string) 3.7. userblocklist_domain_col (string) 3.8. userblocklist_prefix_col (string) 3.9. userblocklist_allowlist_col (string) 3.10. globalblocklist_table (String) 3.
userblocklist_username_col string 3.7. userblocklist_domain_col (string) 3.8. userblocklist_prefix_col (string) 3.9. userblocklist_allowlist_col (string) 3.10. globalblocklist_table (String) 3.11. globalblocklist_id_col (string) 3.12.
userblocklist_domain_col string 3.8. userblocklist_prefix_col (string) 3.9. userblocklist_allowlist_col (string) 3.10. globalblocklist_table (String) 3.11. globalblocklist_id_col (string) 3.12. globalblocklist_prefix_col (string) 3.
userblocklist_prefix_col string 3.9. userblocklist_allowlist_col (string) 3.10. globalblocklist_table (String) 3.11. globalblocklist_id_col (string) 3.12. globalblocklist_prefix_col (string) 3.13. globalblocklist_allowlist_col (stri
userblocklist_allowlist_col string 3.10. globalblocklist_table (String) 3.11. globalblocklist_id_col (string) 3.12. globalblocklist_prefix_col (string) 3.13. globalblocklist_allowlist_col (string) 3.14. globalblocklist_description_col
globalblocklist_table String 3.11. globalblocklist_id_col (string) 3.12. globalblocklist_prefix_col (string) 3.13. globalblocklist_allowlist_col (string) 3.14. globalblocklist_description_col (string)
globalblocklist_id_col string 3.12. globalblocklist_prefix_col (string) 3.13. globalblocklist_allowlist_col (string) 3.14. globalblocklist_description_col (string)
globalblocklist_prefix_col string 3.13. globalblocklist_allowlist_col (string) 3.14. globalblocklist_description_col (string)
globalblocklist_allowlist_col string 3.14. globalblocklist_description_col (string)
globalblocklist_description_col string 3.1. use_domain (integer)
use_domain integer If set to non-zero value, the domain column in the userblocklist table is used.
match_mode integer The number of individual characters that are used for matching. Valid values are 10 or 128. When you specify 10, only digits will be used for matching, this operation mode is equivalent to the old beh
db_url String URL to the database containing the data.
userblocklist_table String Name of the userblocklist table for the userblocklist module.
userblocklist_id_col string unique ID
userblocklist_username_col string The user that is used for the blocklist lookup.
userblocklist_domain_col string The domain that is used for the blocklist lookup.
userblocklist_prefix_col string The prefix that is matched for the blocklist.
userblocklist_allowlist_col string Specify if this is a blocklist (0) or an allowlist (1) entry.
globalblocklist_table String Name of the globalblocklist table for the userblocklist module. Please note that this table is used when the check_blocklist function is called with no parameters.
globalblocklist_id_col string unique ID
globalblocklist_prefix_col string The prefix that is matched for the blocklist.
globalblocklist_allowlist_col string Specify if this is a blocklist (0) or an allowlist (1) entry.
globalblocklist_description_col string A comment for the entry.

Autores y contribuidores

Henning Westerholt <henning.westerholt@1und1.de>Pawel Kuzak <pawel.kuzak@1und1.de>

Copyright © 2008 1&1 Internet AG

Módulos relacionados

auth_web3 auth_xkeys avp avpops benchmark blst call_control call_obj