Daniel, I want to ask you for some help with my idea. Just for some advices and explanations of some structures.Thanks for help.The first of all:I think not write to create new module for integration of usrloc and redis. I thing it is good idea to add new features to existing usrloc and use ndb_redis module for connection.As I undersand when learning source code of usrloc module - this module use /kamailio/lib/srdb1/db.hThis header implements 2 structures that i see at ul_mod files:extern db1_con_t* ul_dbh; extern db_func_t ul_dbf;
This structures handle SQL connections.
I ask this because at the README i see
modparam("usrloc", "db_url", "dbdriver://username:password@dbhost/dbname")
Looking at the API documentation I find API that use DB detection, then I look at db.c at my kamailio ( kamailio 4.3.0-dev5 (x86_64/linux) e172b7) too but can not find any strings about mongo.
The second As I see - location not working with redis because it use API for DB and API not omplement redis integration. So I thing it is write way to rewrite module with external connection to redis, not using API, Isn't it?
Thanks once again