Looks like string "kamailio" is deeply buried in Kamailio CMake build system and it is hard to change the name in Debian packaging. It was quite easy in make build system.
Has anyone a suggestion on how to run two independent Kamailio instances on the same host?
-- Juha
On 14/04/2026 11.26, Juha Heinanen via sr-users wrote:
Has anyone a suggestion on how to run two independent Kamailio instances on the same host?
You can use the same binary and from the same package. All you need to do it start it with different command line options, in particular with `-P` and `-f` pointing to different files (and the contents of the main config file adjusted accordingly of course).
Under systemd on Debian, you can duplicate the systemd unit/service file from /usr/lib/systemd/system/ to /etc/systemd/system/ and create a separate service with its own config. Or you can just launch it manually.
Cheers
Henning, Richard, Bastian.
Thanks for pointing out the systemd solution. I'll start working on it. I need to create three Debian packages:
1) kamailio that contains only kamailio executable and modules
2) sip-proxy that contains systemd service files, /etc/sip-proxy configuration files, database files, and /etc/default/sip-proxy file
3) pres-serv that contains systemd service files, /etc/pres-serv configuration files, database files, and /etc/default/pres-serv file
sip-proxy and pres-serv packages depend on kamailio package.
Would it not be better to containerise the kamailio(s), DB(s) and whatever support tools you need.
Then you can have two or more independeny instances on the same hardware.
Richard
On 15/04/2026 06:00, Juha Heinanen via sr-users wrote:
Henning, Richard, Bastian.
Thanks for pointing out the systemd solution. I'll start working on it. I need to create three Debian packages:
kamailio that contains only kamailio executable and modules
sip-proxy that contains systemd service files, /etc/sip-proxy configuration
files, database files, and /etc/default/sip-proxy file
- pres-serv that contains systemd service files, /etc/pres-serv configuration
files, database files, and /etc/default/pres-serv file
sip-proxy and pres-serv packages depend on kamailio package.
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Hi Juha,
about the cmake, if there is a need to change it, we can do it of course.
Regarding the two Kamailio instances on one system, if both can be the same binary version, you can just create a second systemd service and start this as well. We are using this on some IMS installations.
Cheers,
Henning
________________________________ From: Juha Heinanen via sr-users sr-users@lists.kamailio.org Sent: Tuesday, April 14, 2026 6:26:43 PM To: sr-users@lists.kamailio.org sr-users@lists.kamailio.org Cc: Juha Heinanen jh@tutpro.com Subject: [SR-Users] How to change name Debian Trixie Kamailio?
Looks like string "kamailio" is deeply buried in Kamailio CMake build system and it is hard to change the name in Debian packaging. It was quite easy in make build system.
Has anyone a suggestion on how to run two independent Kamailio instances on the same host?
-- Juha __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Has anyone a suggestion on how to run two independent Kamailio instances
on the same host?
Docker. Use host mode networking, everything else pretty much works like normal.
Regards, Kaufman
From: Juha Heinanen via sr-users sr-users@lists.kamailio.org Date: Tuesday, April 14, 2026 at 10:31 AM To: sr-users@lists.kamailio.org sr-users@lists.kamailio.org Cc: Juha Heinanen jh@tutpro.com Subject: [SR-Users] How to change name Debian Trixie Kamailio?
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Looks like string "kamailio" is deeply buried in Kamailio CMake build system and it is hard to change the name in Debian packaging. It was quite easy in make build system.
Has anyone a suggestion on how to run two independent Kamailio instances on the same host?
-- Juha __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
For some time, Kamailio packages from deb.kamailio.org include a service template file so that you can systemctl enable --now kamailio@presence.service kamailio@proxy.service to enable/start multiple instances.
https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/deb/trixie/kam...
On Tue, Apr 14, 2026, 17:47 Juha Heinanen via sr-users < sr-users@lists.kamailio.org> wrote:
Looks like string "kamailio" is deeply buried in Kamailio CMake build system and it is hard to change the name in Debian packaging. It was quite easy in make build system.
Has anyone a suggestion on how to run two independent Kamailio instances on the same host?
-- Juha __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!