All you need is to follow this simple steps: 1. make a clean install of kamailio 2. define your config files for each service: - kamailio1.cfg - kamailio2.cfg 3. create two seprate init scripts: kamailio1 and kamailio2 4. make sure that each init script is using the appropriate config file (use option -f <my_config file>) 5. make sure that you are not listening on the same sockets for both servers (i.e. set one server on port 506 and the second one on port 5070) 6. If you are creating pid files, make sure that the pid files are different for each service
That's it. You don't need any symbolic links.
Regards, Ovidiu Sas
On Fri, Apr 3, 2009 at 4:46 PM, Juan Perez jperezsip2008@yahoo.com wrote:
understood.
so I just need 2 softlinks?
----- Original Message ---- From: Iñaki Baz Castillo ibc@aliax.net To: users@lists.kamailio.org Sent: Friday, April 3, 2009 3:43:24 PM Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
El Viernes 03 Abril 2009, Juan Perez escribió:
hi guys , I tried to do it and it wont start
my setup is: centos5 kamailio 1.4
I installed kamailio originally in /usr/local/install-dir/ Now I created a folder named "install-dir2" and created these 3 soft links:
/usr/local/install-dir2/etc2/kamailio2/kamailio2.cfg --> /usr/local/install-dir/etc/kamailio/kamailio.cfg
Why do you do it? ^^^^^^^^ Doing that kamailio2.cfg is a link to kamailio.cfg, so when you run:
kamailio2 -f /usr/local/install-dir2/etc2/kamailio2/kamailio2.cfg
You are loading /usr/local/install-dir/etc/kamailio/kamailio.cfg !!!
This is, kamailio2 is trying to bind the same sockets so it cannot start.
-- Iñaki Baz Castillo ibc@aliax.net
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users