thank you all very much, I will try it and let you know
----- Original Message ----
From: Ovidiu Sas <osas(a)voipembedded.com>
To: Juan Perez <jperezsip2008(a)yahoo.com>
Cc: Iñaki Baz Castillo <ibc(a)aliax.net>et>; users(a)lists.kamailio.org
Sent: Friday, April 3, 2009 4:27:41 PM
Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
Do not use kamctl script. You will need to do more tweaking in order
to get that one to work.
Just start kamailio from the comand line.
Regards,
Ovidiu Sas
On Fri, Apr 3, 2009 at 5:18 PM, Juan Perez <jperezsip2008(a)yahoo.com> wrote:
thank you ovidiu
I do not have an init scrip, I start and stop using the "kamctl stop|start"
which is a bash script.Is this the one that you are referring to?
I intend to listen on the same port but in another IP, each instance will use a different
ip, so I have to change the listening ip only.
regards
jp
----- Original Message ----
From: Ovidiu Sas <osas(a)voipembedded.com>
To: Juan Perez <jperezsip2008(a)yahoo.com>
Cc: Iñaki Baz Castillo <ibc(a)aliax.net>et>; users(a)lists.kamailio.org
Sent: Friday, April 3, 2009 3:53:25 PM
Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
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(a)yahoo.com> wrote:
understood.
so I just need 2 softlinks?
----- Original Message ----
From: Iñaki Baz Castillo <ibc(a)aliax.net>
To: users(a)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(a)aliax.net>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users(a)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(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users