Thank you Iñaki,
so just by doing that I can have 2 config files:
1- /etc/kamailio listening on IP 1 and doing its own logic
2- and /etc/kamailio_2 listening on IP2 and doing its own logic, own modules,
commands etc?
If I need each instance to have its own db I just create a new db and config
/etc/kamailio_2 to use db named "openser2" ?
regards
jp
----- Original Message ----
From: Iñaki Baz Castillo <ibc(a)aliax.net>
To: users(a)lists.kamailio.org
Sent: Tuesday, March 31, 2009 12:52:02 PM
Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
El Martes 31 Marzo 2009, Juan Perez escribió:
hi
To install another instance of kamailio listening in another IP,
Kamailio *already* supports listening in various IP's/interfaces/protocols.
does one need to do something in particular aside from
install it in another
directory?
You *don't* need to install it again in other directoy. What I did it a soft
link:
/usr/sbin/kamailio_2 -> /usr/sbin/kamailio
And copy /etc/init.d/kamailio to /etc/init.d/kamailio_2, and also
/etc/kamailio to /etc/kamailio_2. And of course, configure these files.
Also, when it is time to run the script to create the
mysql
tables, how can I tell the script to create a db named "openser2" to avoid
deleting the existing one named by default "openser" ?
kamdbctl script will ask you for tha DB name.
Just by changing the
line DBNAME=openser in kamctlrc to DBNAME=openser2?
This will control which DB is accessed by kamctl command.
--
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