mod_redis
About
mod_redis supplies a call-limiting back-end that uses Redis.
Note: This backend does NOT support rate based limits.
Setup and Configuration
Download Redis and install it per the instructions. (As of this writing 2.0 was still in RC so I used 1.2)
tar zxvf redis-1.2.6.tar.gz
cd redis-1.2.6
make
After make, open a second window and then launch the redis-server script Back in the redis source directory launch:
make test
This will test your redis system.
In the FreeSWITCH source directory be sure that mod_redis is enabled in modules.conf, then build:
make mod_redis-install
Copy the redis.conf.xml file into conf/autoload_configs/ Then load:
reloadxml
load mod_redis
Add mod_redis to conf/autoload_configs/modules.conf.xml to make it load automatically when FreeSWITCH starts.
Usage
Redis is used like any other limit back-end:
<action application="limit" data="redis realm id 10 limit_exceeded" />