]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Startiing the deprecation mod_redis in favor of mod_hiredis.
authorWilliam King <william.king@quentustech.com>
Thu, 27 Aug 2015 22:10:52 +0000 (15:10 -0700)
committerWilliam King <william.king@quentustech.com>
Fri, 28 Aug 2015 23:56:47 +0000 (16:56 -0700)
src/mod/applications/mod_redis/mod_redis.c

index 1f8877b6a1e8ce94f06793eb64b3a3d2603dc9e2..eff6691c69201ddf01cb7abbc122bacd380bff84 100644 (file)
@@ -85,7 +85,9 @@ SWITCH_LIMIT_INCR(limit_incr_redis)
        uint8_t increment = 1;
        switch_status_t status = SWITCH_STATUS_SUCCESS; 
        REDIS redis;
-       
+
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "mod_redis is deprecated and will be removed in FS 1.8. Check out mod_hiredis.\n");
+
        if (redis_factory(&redis) != SWITCH_STATUS_SUCCESS) {
                if ( globals.ignore_connect_fail ) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ignore_connect_fail=true, so ignoring the fact that redis was not contactabl and continuing with the call\n" );
@@ -315,6 +317,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_redis_load)
                return SWITCH_STATUS_FALSE;
        }
 
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "mod_redis is deprecated and will be removed in FS 1.8. Check out mod_hiredis.\n");
+
        /* If FreeSWITCH was restarted and we still have active calls, decrement them so our global count stays valid */
        limit_reset_redis();