switch_log_printf(SWITCH_CHANNEL_LOG,SWITCH_LOG_ERROR,"Couldn't connect to redis server at %s:%d timeout:%d\n",globals.host,globals.port,globals.timeout);
returnSWITCH_STATUS_FALSE;
}
returnSWITCH_STATUS_SUCCESS;
}
/* \brief Enforces limit_redis restrictions
* \param session current session
* \param realm limit realm
* \param id limit id
* \param max maximum count
* \param interval interval for rate limiting
* \return SWITCH_TRUE if the access is allowed, SWITCH_FALSE if it isnt