Kamailio db_redis & usrloc: Cannot Retrieve Location via Username from redis-cli

xf han via sr-users <[email protected]> Tue, 31 Mar 2026 08:15:57 -0000
Newsgroups gmane.comp.voip.ser
Message-ID <[email protected]>
Dear Kamailio Community,

I encounter an issue when using db_redis with the usrloc module. Below are my relevant Kamailio configurations:

# kamailio 6.1.1

modparam("db_redis", "schema_path", "/usr/share/kamailio/db_redis")
modparam("db_redis", "keys", "location=entry:ruid&usrdom:username,domain&timer:expires")

modparam("usrloc", "timer_interval", 60)
modparam("usrloc", "timer_procs", 1)
modparam("usrloc", "use_domain", 0)
modparam("usrloc", "db_url", "redis://localhost:6379/0")
modparam("usrloc", "db_mode", 3)

After user 1001 successfully registers, I execute the KEYS * command in redis-cli, and the output is as follows:

redis-cli 
KEYS *

1) "location::index::timer"
2) "location:entry::uloc-69cb7f3b-499e-1"
3) "location:timer::2026-03-31 16:01:59"

My question: I cannot find the corresponding user location information via the username in redis-cli. 

Could anyone help me solve this problem? 

Thank you very much!

Best regards,
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!