Hello, i'm using the Redis module, but the function "redis_cmd" doesn't return false if there is some problem on the database.
if(redis_cmd("srv1","$var(redis_credit)", "r")) { $var(credit_op)=$redis(r=>value); xlog("L_INFO","xxxxxxx -- \n"); } else { xlog("L_INFO","yyyyyyyy -- \n");} If I stop the redis db, and make a call , it enter in the "if" statement and write the log xxx . I think that , if the db is down, it should enter in the "else" and write the yyyy log. Where is the error ? Why , if the db is down, and I try to restart kamailio, it don't start ? It write in the log , that the connection is broken and it remain stopped. Thanks
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users