]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4588 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 19 Dec 2012 00:18:31 +0000 (18:18 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 19 Dec 2012 00:18:31 +0000 (18:18 -0600)
src/mod/applications/mod_redis/mod_redis.c

index 979977baa834e4bd6b7c12d825fdcf9d82a7c52f..f04a8cd38316b9a0ee1116838e89d7282ecb3cc3 100755 (executable)
@@ -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);