Skip to content

Commit

Permalink
Merge pull request #2059 from kamailio/grumvalski/db_redis_keys_doc
Browse files Browse the repository at this point in the history
db_redis: add examples about usage with dialog module
  • Loading branch information
grumvalski committed Sep 8, 2019
2 parents 5a380e9 + 86990ab commit a638c71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/db_redis/doc/db_redis_admin.xml
Expand Up @@ -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)
...
Expand All @@ -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>
Expand Down

0 comments on commit a638c71

Please sign in to comment.