Hello,
On 3/22/13 10:46 AM, Vicente Hernando wrote:
Hello,
I am going to try to fix this.
great, thanks for taking over it.
Cheers, Daniel
Regards, Vicente.
On 03/21/2013 09:28 AM, pars3c wrote:
Hi Daniel,
thanks for your answer, I've tried now to log the variable "$redis(r=>info)" that, as documented, should contain an error message from REDIS, but in this case , REDIS is down and the log is <null >.
Thanks for your help and your work.
*Da:*sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] *Per conto di *Daniel-Constantin Mierla *Inviato:* giovedì 21 marzo 2013 07:59 *A:* Kamailio (SER) - Users Mailing List *Oggetto:* Re: [SR-Users] Redis module problem
Hello,
iirc, the error is signaled as part of redis response pseudo-variable (as type field or so). But indeed can be more logical as you present.
It is kind of typical behavior not to start when not able to connect to backend (e.g., even for like mysql, etc.). This could be changed, as there are options to reconnect at runtime, just that nobody took the time to do it...
If you make a patch for any or both of these change, we will get the in -- if you are not a developer and is not convenient to do it, I will do it sometime soon, in this devel cycle, but I may need your assistance to test.
Cheers, Daniel
On 3/20/13 5:54 PM, pars3c wrote:
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 <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -http://www.asipto.com http://twitter.com/#!/miconda http://twitter.com/#%21/miconda -http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin
-http://conference.kamailio.com -
Nessun virus nel messaggio. Controllato da AVG - www.avg.com http://www.avg.com Versione: 2013.0.2904 / Database dei virus: 2641/6185 - Data di rilascio: 17/03/2013
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
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