[SR-Users] Redis module problem

pars3c pars3c at gmail.com
Wed Mar 20 17:54:14 CET 2013


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130320/16ebafde/attachment.htm>


More information about the sr-users mailing list