Hi all, Is it possible to install more than 1 asterisk in a single server? If yes, what do I need to set and take care? Rgds, ango
Yes it's possible.. When you install use... ./configure --prefix=/usr/local/asterisk2 or something like it. I had to change astrundir (in asterisk.conf) as well. One thing to watch out for is that if you run make samples it will overwrite the ones stored in /etc/asterisk and not where you'd expect them to be in /usr/local/asterisk2/etc/asterisk (or at least it di dwhen i did it!). and for a helping hand i symlinked /usr/local/asterisk2/sbin/asterisk to /usr/local/sbin/asterisk2 and /usr/local/asterisk2/sbin/safe_asterisk to /usr/local/sbin/safe_asterisk2 Cheers Geraint You will also need to look at asterisk.conf in the new installation directory and as a quickfix to get it running, use a different location for astrundir 2009/2/24 Rilawich Ango <maillisting at gmail.com>> Hi all, > Is it possible to install more than 1 asterisk in a single server? > If yes, what do I need to set and take care? > > Rgds, > ango > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090224/b59f33d0/attachment.htm
On Tue, Feb 24, 2009 at 2:59 AM, Rilawich Ango <maillisting at gmail.com> wrote:> Hi all, > ?Is it possible to install more than 1 asterisk in a single server?Can somebody help me understand why you would want to do this? I suppose development versus production, but wouldn't you also want better separation, like virtualization?
Rilawich Ango wrote:> Hi all, > Is it possible to install more than 1 asterisk in a single server? > If yes, what do I need to set and take care?Just to have several Asterisk instances on a single server you do not need to install it multiple times. Install it once and start it multiple times. Of course you have to have a dedicated configuration for each server, eg: /etc/asterisk/instance1/* /etc/asterisk/instance2/* /etc/asterisk/instance3/* Then you start the Asterisk process and specify the location of the asterisk.conf file. asterisk -C /etc/asterisk/instance1/asterisk.conf asterisk -C /etc/asterisk/instance2/asterisk.conf asterisk -C /etc/asterisk/instance3/asterisk.conf Further, in asterisk.conf specify for each asterisk instance a different location of: spool directory, PID file, .... regards klaus
should have thought of that one lol Cheers for the tip... will be changing my setup to this lol 2009/2/24 Klaus Darilion <klaus.mailinglists at pernau.at>> Rilawich Ango wrote: > > Hi all, > > Is it possible to install more than 1 asterisk in a single server? > > If yes, what do I need to set and take care? > > Just to have several Asterisk instances on a single server you do not > need to install it multiple times. Install it once and start it multiple > times. > > Of course you have to have a dedicated configuration for each server, eg: > /etc/asterisk/instance1/* > /etc/asterisk/instance2/* > /etc/asterisk/instance3/* > > Then you start the Asterisk process and specify the location of the > asterisk.conf file. > > asterisk -C /etc/asterisk/instance1/asterisk.conf > asterisk -C /etc/asterisk/instance2/asterisk.conf > asterisk -C /etc/asterisk/instance3/asterisk.conf > > Further, in asterisk.conf specify for each asterisk instance a different > location of: spool directory, PID file, .... > > regards > klaus > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090224/98e366f3/attachment.htm
Klaus Darilion wrote:> Rilawich Ango wrote: >> Hi all, >> Is it possible to install more than 1 asterisk in a single server? >> If yes, what do I need to set and take care? > > Just to have several Asterisk instances on a single server you do not > need to install it multiple times. Install it once and start it multiple > times. > > Of course you have to have a dedicated configuration for each server, eg: > /etc/asterisk/instance1/* > /etc/asterisk/instance2/* > /etc/asterisk/instance3/* > > Then you start the Asterisk process and specify the location of the > asterisk.conf file. > > asterisk -C /etc/asterisk/instance1/asterisk.conf > asterisk -C /etc/asterisk/instance2/asterisk.conf > asterisk -C /etc/asterisk/instance3/asterisk.conf > > Further, in asterisk.conf specify for each asterisk instance a different > location of: spool directory, PID file, ....btw: I use a common /var/lib/asterisk/ as I want to have the same "sounds" for all instances. This gives a problem when you use 1.4, as 1.4 can not configure the location of astdb. For these you have to apply this patch: http://bugs.digium.com/view.php?id=14257 regards klaus
It seems better to install once with multiple instances. Do we need to take care the port or IP of each instance? On Wed, Feb 25, 2009 at 5:36 AM, Klaus Darilion <klaus.mailinglists at pernau.at> wrote:> Klaus Darilion wrote: >> Rilawich Ango wrote: >>> Hi all, >>> ? Is it possible to install more than 1 asterisk in a single server? >>> If yes, what do I need to set and take care? >> >> Just to have several Asterisk instances on a single server you do not >> need to install it multiple times. Install it once and start it multiple >> times. >> >> Of course you have to have a dedicated configuration for each server, eg: >> /etc/asterisk/instance1/* >> /etc/asterisk/instance2/* >> /etc/asterisk/instance3/* >> >> Then you start the Asterisk process and specify the location of the >> asterisk.conf file. >> >> asterisk -C /etc/asterisk/instance1/asterisk.conf >> asterisk -C /etc/asterisk/instance2/asterisk.conf >> asterisk -C /etc/asterisk/instance3/asterisk.conf >> >> Further, in asterisk.conf specify for each asterisk instance a different >> location of: spool directory, PID file, .... > > btw: I use a common /var/lib/asterisk/ as I want to have the same > "sounds" for all instances. This gives a problem when you use 1.4, as > 1.4 can not configure the location of astdb. For these you have to apply > this patch: > http://bugs.digium.com/view.php?id=14257 > > regards > klaus > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users >
Rilawich Ango schrieb:> It seems better to install once with multiple instances. Do we need > to take care the port or IP of each instance?of course you have to.> > On Wed, Feb 25, 2009 at 5:36 AM, Klaus Darilion > <klaus.mailinglists at pernau.at> wrote: >> Klaus Darilion wrote: >>> Rilawich Ango wrote: >>>> Hi all, >>>> Is it possible to install more than 1 asterisk in a single server? >>>> If yes, what do I need to set and take care? >>> Just to have several Asterisk instances on a single server you do not >>> need to install it multiple times. Install it once and start it multiple >>> times. >>> >>> Of course you have to have a dedicated configuration for each server, eg: >>> /etc/asterisk/instance1/* >>> /etc/asterisk/instance2/* >>> /etc/asterisk/instance3/* >>> >>> Then you start the Asterisk process and specify the location of the >>> asterisk.conf file. >>> >>> asterisk -C /etc/asterisk/instance1/asterisk.conf >>> asterisk -C /etc/asterisk/instance2/asterisk.conf >>> asterisk -C /etc/asterisk/instance3/asterisk.conf >>> >>> Further, in asterisk.conf specify for each asterisk instance a different >>> location of: spool directory, PID file, .... >> btw: I use a common /var/lib/asterisk/ as I want to have the same >> "sounds" for all instances. This gives a problem when you use 1.4, as >> 1.4 can not configure the location of astdb. For these you have to apply >> this patch: >> http://bugs.digium.com/view.php?id=14257 >> >> regards >> klaus >> >> _______________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users