From: Anthony Minessale Date: Wed, 19 Dec 2012 00:18:31 +0000 (-0600) Subject: FS-4588 --resolve X-Git-Tag: v1.3.13~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7085de2546815379d72ae10c03bcf6e1e80dec30;p=thirdparty%2Ffreeswitch.git FS-4588 --resolve --- diff --git a/src/mod/applications/mod_redis/mod_redis.c b/src/mod/applications/mod_redis/mod_redis.c index 979977baa8..f04a8cd383 100755 --- a/src/mod/applications/mod_redis/mod_redis.c +++ b/src/mod/applications/mod_redis/mod_redis.c @@ -128,7 +128,12 @@ SWITCH_LIMIT_INCR(limit_incr_redis) switch_goto_status(SWITCH_STATUS_FALSE, end); } } - } + } else { + if (credis_incr(redis, uuid_rediskey, &uuid_val) != 0) { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Couldn't increment value corresponding to %s\n", uuid_rediskey); + switch_goto_status(SWITCH_STATUS_FALSE, end); + } + } } /* switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG10, "Limit incr redis : rediskey : %s val : %d max : %d\n", rediskey, val, max);