I have three Kamailios in three different servers which are dispatching calls to 9 asterisks in three different servers using load balancing. All these Kamailios are using databases installed on that servers. As the entries of the dispatcher table are the same for all the Kamailio, so I want that these Kamailio use a single database installed on one of the servers. All these Kamailios instances should use the same database which is common between them. And also I want these Kamailios to write into the database by creating a table that stores all the active calls in three Kamailios. Is it possible? How can I do it? Please guide me with somewhat explanation as I am not this much expert in Kamailio.
Waiting for a quick response. Regards VoIP Engineer Vicky
Hello
Can you say PROS and CONS for Kamailio installation methods:
Source vs APT (.deb)
What i think : maybe from source is better if you need to get fixes / patches faster?
How fast Kamailio patches appears to the .deb ?
What is good practice for Kamailio installation method in production environments?
Hi,
unless you want to create your own patches, I would suggest using the Debian packages. The project even provides daily packages in case you do not want to wait for a release for a certain fix.
For production environments you usually want to use packages in the end. Some people also use docker images.
Cheers,
Henning
Hello,
you can share a database between different Kamailio server. Especially if they access only read-only, this is pretty much a standard scenario.
Regarding keeping a table for the active calls, the dialog module allows you to easily track current calls. It can also save the information in a database.
Otherwise you can of course also do your own solution, e.g. with the sqlops module.
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Waqar 40 Sent: Friday, July 29, 2022 7:30 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: [SR-Users] Sharing Database between three kamailios
I have three Kamailios in three different servers which are dispatching calls to 9 asterisks in three different servers using load balancing. All these Kamailios are using databases installed on that servers. As the entries of the dispatcher table are the same for all the Kamailio, so I want that these Kamailio use a single database installed on one of the servers. All these Kamailios instances should use the same database which is common between them. And also I want these Kamailios to write into the database by creating a table that stores all the active calls in three Kamailios. Is it possible? How can I do it? Please guide me with somewhat explanation as I am not this much expert in Kamailio.
Waiting for a quick response. Regards VoIP Engineer Vicky