RTPEngine with REDIS backend. - Omid-Mohajerani/Learn-Kamailio GitHub Wiki

Install Redis

https://github.com/Omid-Mohajerani/Learn-Kamailio/wiki/How-to-install-redis-on-Debian-11%3F

Install RTPEngine

https://github.com/Omid-Mohajerani/Learn-Kamailio/wiki/RTPEngine-Installation-Debain-11

Configure RTP Engine for Redis

vim /etc/rtpengine/rtpengine.conf

Change the IP Address to the IP Address of your redis db.

redis = 127.0.0.1:6379/5
redis_db = 0

Verify if RTPEngine is connected to redis

cat /var/log/syslog

Dec 27 10:12:29 rtpengine01 rtpengine[41883]: INFO: [core] Asking Redis whether it's master or slave...
Dec 27 10:12:29 rtpengine01 rtpengine[41883]: INFO: [core] Connected to Redis 127.0.0.1:6379 in master mode
Dec 27 10:12:29 rtpengine01 rtpengine[41883]: INFO: [core] Established initial connection to Redis 127.0.0.1:6379
Dec 27 10:12:29 rtpengine01 rtpengine[41883]: INFO: [core] Startup complete, version 11.2.0.0+0~mr11.2.0.0 git-master-d751bcad
Dec 27 10:12:29 rtpengine01 rtpengine[41883]: INFO: [core] Established initial connection to Redis 127.0.0.1:6379
Dec 27 10:12:29 rtpengine01 rtpengine[41883]: INFO: [core] Established initial connection to Redis 127.0.0.1:6379
Dec 27 10:12:29 rtpengine01 rtpengine[41883]: INFO: [core] Established initial connection to Redis 127.0.0.1:6379
Dec 27 10:12:29 rtpengine01 rtpengine[41883]: INFO: [core] Established initial connection to Redis 127.0.0.1:6379
Dec 27 10:12:29 rtpengine01 rtpengine[41883]: INFO: [core] Redis restore time = 4 ms