提交 d582e08d authored 作者: William King's avatar William King

Startiing the deprecation mod_redis in favor of mod_hiredis.

上级 d1d0f553
...@@ -85,7 +85,9 @@ SWITCH_LIMIT_INCR(limit_incr_redis) ...@@ -85,7 +85,9 @@ SWITCH_LIMIT_INCR(limit_incr_redis)
uint8_t increment = 1; uint8_t increment = 1;
switch_status_t status = SWITCH_STATUS_SUCCESS; switch_status_t status = SWITCH_STATUS_SUCCESS;
REDIS redis; 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 (redis_factory(&redis) != SWITCH_STATUS_SUCCESS) {
if ( globals.ignore_connect_fail ) { 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" ); 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) ...@@ -315,6 +317,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_redis_load)
return SWITCH_STATUS_FALSE; 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 */ /* If FreeSWITCH was restarted and we still have active calls, decrement them so our global count stays valid */
limit_reset_redis(); limit_reset_redis();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论