hi To install another instance of kamailio listening in another IP, does one need to do something in particular aside from install it in another directory? 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" ? Just by changing the line DBNAME=openser in kamctlrc to DBNAME=openser2?
thank you
jp
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.
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@aliax.net To: users@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.
El Martes 31 Marzo 2009, Juan Perez escribió:
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
Again, you could have an *unique* Kamailio and split the behaviour based on the address from which each request comes.
2- and /etc/kamailio_2 listening on IP2 and doing its own logic, own modules, commands etc?
Yes.
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" ?
Sure.
On Tue, Mar 31, 2009 at 2:52 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
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.
That is not true. If you execute just "kamdbctl create" it will use DBNAME value defined in /etc/kamailio/kamctlrc (or openser as default)
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@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
El Martes 31 Marzo 2009, Luciano Afranllie escribió:
kamdbctl script will ask you for tha DB name.
That is not true. If you execute just "kamdbctl create" it will use DBNAME value defined in /etc/kamailio/kamctlrc (or openser as default)
As far as I remember, it will suggest as DB name that field (DBNAME) in kamctlrc, but it will ask you for confirmation, so you can set any other.
Hi, There: I want to forward a dynamic list of phone numbers to a single phone number. ideally, the dynamic list of number would be added/removed in a table. as soon as ruri $rU matches those list, we forward them to a designated phone number. can I get this done in kamailio ? how ?
Jinsong
El Sábado 06 Diciembre 2003, Jinsong escribió:
Hi, There
Please, don't press "Reply" over any existing mail when what you want is to create a new thread. Even if you change the subject, your mail client adds a "In-reply-to" header to the mail so it appears holding from the same thread in which you pressed "Reply".
Instead of that, use "Create new mail" (from scratch).
Thannks.
On 03/31/2009 11:10 PM, Iñaki Baz Castillo wrote:
El Sábado 06 Diciembre 2003, Jinsong escribió:
the email came from the dark past, before openser/kamailio was started ... :-) ... so be patient...
Cheers, Daniel
Hi, There
Please, don't press "Reply" over any existing mail when what you want is to create a new thread. Even if you change the subject, your mail client adds a "In-reply-to" header to the mail so it appears holding from the same thread in which you pressed "Reply".
Instead of that, use "Create new mail" (from scratch).
Thannks.
Hello,
On 12/06/2003 11:54 PM, Jinsong wrote:
Hi, There: I want to forward a dynamic list of phone numbers to a single phone number. ideally, the dynamic list of number would be added/removed in a table. as soon as ruri $rU matches those list, we forward them to a designated phone number. can I get this done in kamailio ? how ?
see alias_db module. you can map multiple numbers to same destination. http://kamailio.org/docs/modules/1.5.x/alias_db.html
Cheers, Daniel
Hi, There: I have been wondering that , if client/phone has stun support, does kamailio still needs to support NAT/rtpproxy ? in theory, when the client has stun support, it can find out its own public address and port, and from kamailio's point of view, it just looks like the client is in the public internet. so kamailio should have no need to do NAT/rtpproxy. without NAT/rtpproxy, the bandwidth requirement on the kamailio is drastically cut down, because kamailio only needs to handle signal. What I am not sure is , for the clients with sip support, will it constantly send out requests, say, every 2 minutes, so the firewall won't expire the mapping of private/public address and port on the firewall itself. in case the client doesn't send out requests constantly, then the mapping may expire and that may present a problem. in that case, if we let kamailio send out OPTIONS every 1 minute to the client, then the mapping can be kept alive. if that is true, then we will still don't need rtpproxy, thus saving bandwidth on the server and scales much better. Is that I described true ?
Jimmy
2003/12/5 Jinsong jinsong_hu@hotmail.com:
Hi, There: I have been wondering that , if client/phone has stun support, does kamailio still needs to support NAT/rtpproxy ? in theory, when the client has stun support, it can find out its own public address and port, and from kamailio's point of view, it just looks like the client is in the public internet. so kamailio should have no need to do NAT/rtpproxy. without NAT/rtpproxy, the bandwidth requirement on the kamailio is drastically cut down, because kamailio only needs to handle signal. What I am not sure is , for the clients with sip support, will it constantly send out requests, say, every 2 minutes, so the firewall won't expire the mapping of private/public address and port on the firewall itself. in case the client doesn't send out requests constantly, then the mapping may expire and that may present a problem. in that case, if we let kamailio send out OPTIONS every 1 minute to the client, then the mapping can be kept alive. if that is true, then we will still don't need rtpproxy, thus saving bandwidth on the server and scales much better. Is that I described true ?
As you said, a client supporting STUN behaves as a client with public IP. In fact, a proxy *cannot* differenciate between a client with real public address and other client doing STUN.
However, note that STUN doesn't work behind symmetric NAT routers. The client detects this kind of NAT when performing the initial STUN test.
Also, a client doing STUN already knows that it is behind NAT so it mantains open the UDP "connection" by sending keepalives (OPTIONS i.e.).
how can I "tell" the bin kamailio_2 to use the file /etc/kamacilio_2,cfg ? sorry if tis looks silly cheers jp
----- Original Message ---- From: Iñaki Baz Castillo ibc@aliax.net To: users@lists.kamailio.org Sent: Tuesday, March 31, 2009 2:09:39 PM Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
El Martes 31 Marzo 2009, Luciano Afranllie escribió:
kamdbctl script will ask you for tha DB name.
That is not true. If you execute just "kamdbctl create" it will use DBNAME value defined in /etc/kamailio/kamctlrc (or openser as default)
As far as I remember, it will suggest as DB name that field (DBNAME) in kamctlrc, but it will ask you for confirmation, so you can set any other.
This is a nasty kludge/bad design. I would avoid this and do as Iñaki suggests. If different databases are required, use a separate machine.
Juan Perez wrote:
how can I "tell" the bin kamailio_2 to use the file /etc/kamacilio_2,cfg ? sorry if tis looks silly cheers jp
----- Original Message ---- From: Iñaki Baz Castillo ibc@aliax.net To: users@lists.kamailio.org Sent: Tuesday, March 31, 2009 2:09:39 PM Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
El Martes 31 Marzo 2009, Luciano Afranllie escribió:
kamdbctl script will ask you for tha DB name.
That is not true. If you execute just "kamdbctl create" it will use DBNAME value defined in /etc/kamailio/kamctlrc (or openser as default)
As far as I remember, it will suggest as DB name that field (DBNAME) in kamctlrc, but it will ask you for confirmation, so you can set any other.
we will use a different machine but we are limited with hardware now so in the mean time [and not for production traffic] we need to use the same hardware for more than one instance to test some stuff thank you guys jp
----- Original Message ---- From: Alex Balashov abalashov@evaristesys.com To: Juan Perez jperezsip2008@yahoo.com Cc: Iñaki Baz Castillo ibc@aliax.net; users@lists.kamailio.org Sent: Tuesday, March 31, 2009 2:59:47 PM Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
This is a nasty kludge/bad design. I would avoid this and do as Iñaki suggests. If different databases are required, use a separate machine.
Juan Perez wrote:
how can I "tell" the bin kamailio_2 to use the file /etc/kamacilio_2,cfg ? sorry if tis looks silly cheers jp
----- Original Message ---- From: Iñaki Baz Castillo ibc@aliax.net To: users@lists.kamailio.org Sent: Tuesday, March 31, 2009 2:09:39 PM Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
El Martes 31 Marzo 2009, Luciano Afranllie escribió:
kamdbctl script will ask you for tha DB name.
That is not true. If you execute just "kamdbctl create" it will use DBNAME value defined in /etc/kamailio/kamctlrc (or openser as default)
As far as I remember, it will suggest as DB name that field (DBNAME) in kamctlrc, but it will ask you for confirmation, so you can set any other.
-- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (678) 237-1775
El Martes 31 Marzo 2009, Juan Perez escribió:
how can I "tell" the bin kamailio_2 to use the file /etc/kamacilio_2,cfg ? sorry if tis looks silly cheers
Read "kamailio --help" or "man kamailio".
thank you, found it [option -c]
----- Original Message ---- From: Iñaki Baz Castillo ibc@aliax.net To: users@lists.kamailio.org Sent: Tuesday, March 31, 2009 3:11:34 PM Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
El Martes 31 Marzo 2009, Juan Perez escribió:
how can I "tell" the bin kamailio_2 to use the file /etc/kamacilio_2,cfg ? sorry if tis looks silly cheers
Read "kamailio --help" or "man kamailio".
On Tuesday 31 March 2009, Iñaki Baz Castillo wrote:
kamdbctl script will ask you for tha DB name.
That is not true. If you execute just "kamdbctl create" it will use DBNAME value defined in /etc/kamailio/kamctlrc (or openser as default)
As far as I remember, it will suggest as DB name that field (DBNAME) in kamctlrc, but it will ask you for confirmation, so you can set any other.
Hi Iñaki,
it will not ask you for a name, but you can suggest a custom one on the command line, it will then use it instead the default.
Cheers,
Henning
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 /usr/local/install-dir2/sbin2/kamctl2 ---> /usr/local/install-dir/sbin/kamctl /usr/local/install-dir2/sbin2/kamailio2 --> /usr/local/install-dir/sbin/kamailio
I tried running kamailio2 -f /usr/local/install-dir2/etc2/kamailio2/kamailio2.cfg and it failed to start
I do not think that I got your idea right, what would be the files that I need to "replicate" as links and how should I start the program? cheers
jp
----- Original Message ---- From: Luciano Afranllie listas.luafran@gmail.com To: Iñaki Baz Castillo ibc@aliax.net Cc: users@lists.kamailio.org Sent: Tuesday, March 31, 2009 1:22:08 PM Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
On Tue, Mar 31, 2009 at 2:52 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
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.
That is not true. If you execute just "kamdbctl create" it will use DBNAME value defined in /etc/kamailio/kamctlrc (or openser as default)
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@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
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.
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.
El Viernes 03 Abril 2009, Juan Perez escribió:
understood.
so I just need 2 softlinks?
You just need one:
/usr/local/install-dir2/sbin2/kamailio2 --> /usr/local/install-dir/sbin/kamailio
And you don't need it in fact, but it's nice to have it since in this way you can see two kind of process names when doing "ps":
kamailio kamailio2
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