From 7085de2546815379d72ae10c03bcf6e1e80dec30 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 18 Dec 2012 18:18:31 -0600 Subject: [PATCH] FS-4588 --resolve --- src/mod/applications/mod_redis/mod_redis.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);