[OpenSIPS-Users] Using Redis as database for uac_registrant module

Dan Christian Bogos danb.lists at gmail.com
Thu Jul 10 09:37:05 CEST 2014


Hey Bogdan,

As discussed, I am trying to use redis behind db_cachedb module for 
uac_registrant to be able to fetch data out of no-sql db. So far I have 
implemented just the initial configuration since I could not pass 
initialization (not sure if that is a good sign though ;) ).


Here is what I got in syslog:
"""
Jul 10 09:27:56 SimwoodDev /usr/sbin/opensips[3310]: 
ERROR:db_cachedb:db_cachedb_query: The selected NoSQL driver cannot 
convert select queries
Jul 10 09:27:56 SimwoodDev /usr/sbin/opensips[3310]: 
ERROR:core:db_table_version: error in db_query
Jul 10 09:27:56 SimwoodDev /usr/sbin/opensips[3310]: 
ERROR:core:db_check_table_version: querying version for table registrant
"""

And here is a digest of my config:
"""
...
#### Redis module
loadmodule "cachedb_redis.so"
modparam("cachedb_redis", "cachedb_url","redis:local://localhost:6379/")

#### DbCachedb module
loadmodule "db_cachedb.so"
modparam("db_cachedb","cachedb_url","redis:local://localhost:6379/")

#### UacAuth module
loadmodule "uac_auth.so"

#### UacRegistrant module
loadmodule "uac_registrant.so"
modparam("uac_registrant", "db_url", "cachedb://redis:local")
...
"""

To redis I could not spot anything being sent, except some  CLUSTER 
commands. Are these used with a  purpose or can they be disabled?

"""
T 2014/07/10 09:27:46.942284 127.0.0.1:46564 -> 127.0.0.1:6379 [AP]
*2.
$7.
CLUSTER.
$5.
NODES.

##
T 2014/07/10 09:27:46.943151 127.0.0.1:6379 -> 127.0.0.1:46564 [AP]
-ERR unknown command 'CLUSTER'.
"""

Many thanks in advance for any kind of tip!

DanB





More information about the Users mailing list