[Kamailio-Users] another instance of kamailio on the same machine

Juan Perez jperezsip2008 at yahoo.com
Fri Apr 3 23:18:15 CEST 2009


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 at voipembedded.com>
To: Juan Perez <jperezsip2008 at yahoo.com>
Cc: Iñaki Baz Castillo <ibc at aliax.net>; users at 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 at yahoo.com> wrote:
>
> understood.
>
> so I just need 2 softlinks?
>
>
>
>
> ----- Original Message ----
> From: Iñaki Baz Castillo <ibc at aliax.net>
> To: users at 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 at aliax.net>
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at 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 at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>


      




More information about the Users mailing list