### Description
Currently, the `geoip2` module loads the IP database at startup and keeps it in cache and there is no way to tell Kamailio to reload the database without a full restart.
### Possible Solutions
To keep this module inline with other modules that use external datasources, I would suggest to implement a new RPC command and a new geoip2 function to reload the database defined in the `path` geoip2 modparam without the need of a restart.
I'm not aware of the effort required for implementing either of them, but only having an RPC command would effectively solve this issue as you can call RPC commands from within Kamailio conf, thus, the reload function would not be something strictly required but more of a nice-to-have.
### Examples:
Function:
```
geoip2_reload()
```
RPC command:
```
kamctl rpc gip2.reload / kamctl rpc geoip2.reload
```
Kamcmd command:
```
kamcmd geoip2.reload
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2029
Module: kamailio
Branch: master
Commit: dd12c792b42c223bf93bb58ff0103efb454ab88b
URL: https://github.com/kamailio/kamailio/commit/dd12c792b42c223bf93bb58ff0103ef…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2022-04-13T05:59:15Z
userblocklist: small spelling improvement in docs
---
Modified: src/modules/userblocklist/doc/userblocklist_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/dd12c792b42c223bf93bb58ff0103ef…
Patch: https://github.com/kamailio/kamailio/commit/dd12c792b42c223bf93bb58ff0103ef…
---
diff --git a/src/modules/userblocklist/doc/userblocklist_admin.xml b/src/modules/userblocklist/doc/userblocklist_admin.xml
index f991e0efa2..a5f136d8f4 100644
--- a/src/modules/userblocklist/doc/userblocklist_admin.xml
+++ b/src/modules/userblocklist/doc/userblocklist_admin.xml
@@ -33,7 +33,7 @@
The module exports four functions, <function>check_blocklist</function>,
<function>check_allowlist</function>,
<function>check_user_blocklist</function> and <function>check_user_allowlist</function>
- for usage in the configuration file. Furthermore it provides a MI function to
+ for usage in the configuration file. Furthermore it provides a RPC function to
reload the global blocklist cache.
</para>
<para>