RTP Engine in HA Mode - Omid-Mohajerani/Learn-Kamailio GitHub Wiki

The "subscribe-keyspace" command allows the RTP engine to subscribe to keyspace notifications from a Redis database. Once the RTP engine is subscribed to a keyspace notification, it will receive notifications whenever certain events occur within the database, such as the insertion or deletion of a key.

The RTP engine can use keyspace notifications to keep track of various types of data that are stored in the Redis database, such as session information or media stream data. By subscribing to keyspace notifications, the RTP engine can stay informed about changes to the data in the Redis database and take appropriate action as needed.

It's worth noting that the "subscribe-keyspace" command is specific to Redis and is not part of the core functionality of the RTP engine. Instead, it is an optional feature that can be used in conjunction with the RTP engine to enable additional functionality or integration with other systems.


view sessions

./rtpengine-ctl list sessions all

(script located at /usr/local/src/rtpengine/utils/ folder)

if you got following error

Can't locate Config/Tiny.pm in @INC (you may need to install the Config::Tiny module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at ./rtpengine-ctl line 8.

Install Config::Tiny module perl module using following command

cpan
install Config::Tiny