ghrst / Kamailio-HA

This repository contains Ansible playbooks and related files for an Active-Passive Kamailio auto-deployment using Pacemaker and Corosync.
GNU General Public License v2.0
54 stars 18 forks source link

Debian 10 - Buster : Support of Kamailio-HA #5

Closed yboujraf closed 5 years ago

yboujraf commented 5 years ago

Dear,

I got your reference from Mr Daniel-Constantin Mierla.

I was looking for a kamailio failover setup running on Debian 10 Buster & kamailio 5.3 (without docker at this stage) :

Monitoring service : identify who is the kamailio server online, offline and the ability to force all the SIP/RTP/MANAGEMENT connection from Kamailio Srv1 to Kamailio Srv2 and vice-versa ?

Questions :

We would like to use RTPENGINE to record audio on file (Mix of caller and callee or seperated)

Best Regards, Youssef

ghrst commented 5 years ago

Hi,

  1. Fortunately, your architecture can be implemented using Ansible scripts in this repository. However, to make it work on Debian Buster (I tested it on Debian Stretch), you might need to change a few things

  2. This repository uses Corosync, and Pacemaker, which are old, stable, and very well-documented. Corosync provides a heart-beat mechanism to identify nodes in a cluster. On top of this layer Pacemaker can understand your services, e.g VirtualIP, Kamailio, etc. In order to understand how things work you should refer to Pacemaker's documentation at https://clusterlabs.org/. There is also a book about this topic named Pro Linux High Availability Clustering. However, I think the documentation is good enough.

  3. If you install a local RTPProxy(or equivalently RTPEngine) instance, then it will become a SPoF. Both by it's capacity to handle concurrent calls, and by stopping. Using a cluster of RTPProxy instances you increase the availability, and capacity of your service.

  4. Notice that this ansible repository only sets-up, and installs Kamailio, and RTPProxy. You can record media, but for recording you should refer to RTPEngine's documentation.

yboujraf commented 5 years ago

Thanks dear for your quick answer.

Will install your script and let you know.

And what about ipv6. Is it supported ?

Best Regards, Youssef

ghrst commented 5 years ago

As far as I know yes.

yboujraf commented 2 years ago

Hi Dear @ghrst

I hope you are well.

Since our last exchange, did you find any time to update the script for latest kamailio & rtpengine with debian 11 ?

Best Regards