Module: kamailio
Branch: 5.2
Commit: 307939e892877603357af11ff452ca8c62d7bef5
URL:
https://github.com/kamailio/kamailio/commit/307939e892877603357af11ff452ca8…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-08T22:10:30+02:00
db_redis: add examples about usage with dialog module
(cherry picked from commit 86990ab53c4b5e5ede49b95e17b02f96ae00a01c)
---
Modified: src/modules/db_redis/doc/db_redis_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/307939e892877603357af11ff452ca8…
Patch:
https://github.com/kamailio/kamailio/commit/307939e892877603357af11ff452ca8…
---
diff --git a/src/modules/db_redis/doc/db_redis_admin.xml
b/src/modules/db_redis/doc/db_redis_admin.xml
index 0c8ba2ed04..6439c79b6f 100644
--- a/src/modules/db_redis/doc/db_redis_admin.xml
+++ b/src/modules/db_redis/doc/db_redis_admin.xml
@@ -226,12 +226,15 @@ loadmodule "db_redis.so"
#!define DBURL_ACC "redis://127.0.0.1:6379/6"
#!define DBURL_AUTH "redis://127.0.0.1:6379/7"
#!define DBURL_PERM "redis://127.0.0.1:6379/8"
+#!define DBURL_DLG "redis://127.0.0.1:6379/9"
...
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")
+modparam("db_redis", "keys",
"dialog=entry:hash_entry,hash_id&cid:callid")
+modparam("db_redis", "keys",
"dialog_vars=entry:hash_entry,hash_id,dialog_key&dialog:hash_entry,hash_id")
...
modparam("usrloc", "db_url", DBURL_USRLOC)
...
@@ -240,6 +243,8 @@ modparam("acc_db", "db_url", DBURL_ACC)
modparam("auth_db", "db_url", DBURL_AUTH)
...
modparam("permissions", "db_url", DBURL_PERM)
+...
+modparam("dialog", "db_url", DBURL_DLG)
...
</programlisting>
</example>