Module: kamailio
Branch: master
Commit: 47a22c49a84941c8065c0dfa91fb0d07716126c1
URL:
https://github.com/kamailio/kamailio/commit/47a22c49a84941c8065c0dfa91fb0d0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-11-02T09:11:11+01:00
db_redis: docs - added note that keys parameter must be specified
---
Modified: src/modules/db_redis/doc/db_redis_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/47a22c49a84941c8065c0dfa91fb0d0…
Patch:
https://github.com/kamailio/kamailio/commit/47a22c49a84941c8065c0dfa91fb0d0…
---
diff --git a/src/modules/db_redis/doc/db_redis_admin.xml
b/src/modules/db_redis/doc/db_redis_admin.xml
index 9e5a7a2cbd..9c147a022b 100644
--- a/src/modules/db_redis/doc/db_redis_admin.xml
+++ b/src/modules/db_redis/doc/db_redis_admin.xml
@@ -76,6 +76,13 @@
username/string,domain/string,contact/string,received/string,path/string,expires
records can be: 'address:entry::1', address:entry::2',
address:entry::3', ... No
'keys' modparam of 'db_redis' for 'address' table needs to be
defined.
</para>
+ <para>
+ Important Note: at this moment the module requires at least one 'keys'
+ parameter, but it does not need to be related to the table loaded
+ from Redis server -- for example, if used only for permissions module with
+ 'address' table, then the 'keys' parameter can be specified for
+ 'version' table.
+ </para>
<para>
The mappings can be freely defined in the "keys" module parameter, which is
composed of a semi-colon separated list of definitions in the format
@@ -219,6 +226,7 @@ loadmodule "db_redis.so"
#!define DBURL_PERM "redis://127.0.0.1:6379/8"
...
modparam("db_redis", "schema_path",
"/usr/share/kamailio/db_redis/kamailio")
+modparam("db_redis", "keys", "version=entry:table_name")
modparam("db_redis", "keys",
"location=entry:ruid&usrdom:username,domain&timer:partition,keepalive")
modparam("db_redis", "keys",
"acc=entry:callid,time_hires&cid:callid")
modparam("db_redis", "keys",
"subscriber=entry:username,domain")