Re: [asterisk-users] multiple asterisks in a server
yes, you need to make sure bindaddr is set correctly in iax.conf, sip.conf, dundi.conf, manager.conf and any other files that might include bindaddr for BOTH instances of asterisk, you can't allow one to bind to all ip's and the other just to bind to one - it won't work. 2009/2/25 Rilawich Ango > It seems better to install once with multiple instances. Do we need > to take care the port or IP of each instance? > - Show quoted text - > > On Wed, Feb 25, 2009 at 5:36 AM, Klaus Darilion > 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 > ___ -- 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
Re: [asterisk-users] multiple asterisks in a server
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 > 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 ___ -- 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
Re: [asterisk-users] multiple asterisks in a server
Can you elaborate more how to use 2 IPs for 2 instances of asterisk? On Tue, Feb 24, 2009 at 5:44 PM, Geraint Lee wrote: > Almost forgot, you need to make sure you bind each instance to either it's > own IP address or different ports on the same ip, i used 2 IP's for it and > never hda a problem. > > 2009/2/24 Geraint Lee >> >> 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 >> - Show quoted text - >>> >>> 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 >> > > > ___ > -- 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
Re: [asterisk-users] multiple asterisks in a server
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 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
Re: [asterisk-users] multiple asterisks in a server
Danny Nicholas wrote: > It is possible but not easy. Virtualization isn't necessarily the answer > because of sharing the physical device(s) - If you're a SIP-only > environment, then that wouldn't be a problem, but most * installs (IMO) use > some flavor of Zap/DAHDI which has to be addressed/locked. > Maybe you can use SERVERware... http://www.bicomsystems.com/products/ Senad > -Original Message- > From: asterisk-users-boun...@lists.digium.com > [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of David > Backeberg > Sent: Tuesday, February 24, 2009 10:46 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] multiple asterisks in a server > > On Tue, Feb 24, 2009 at 2:59 AM, Rilawich Ango > 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? > > ___ > -- 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 > ___ -- 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
Re: [asterisk-users] multiple asterisks in a server
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
Re: [asterisk-users] multiple asterisks in a server
should have thought of that one lol Cheers for the tip... will be changing my setup to this lol 2009/2/24 Klaus Darilion > 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 > ___ -- 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
Re: [asterisk-users] multiple asterisks in a server
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
Re: [asterisk-users] multiple asterisks in a server
I do it for CDR, when using the originate command via the manager and initiate a call to a phone which then connects to an agi script upon answer, the cdr stops at the point of answer and there is no other created, which of course is useless for billing customers - there may very well be a way to make the cdr continue after it seems to stop logging, or is it a bug? either way, the quickest solution for me was to install a second copy and send all calls out on a second installation with accurate cdr logging. 2009/2/24 David Backeberg > On Tue, Feb 24, 2009 at 2:59 AM, Rilawich Ango > 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? > - Show quoted text - > > ___ > -- 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
Re: [asterisk-users] multiple asterisks in a server
It is possible but not easy. Virtualization isn't necessarily the answer because of sharing the physical device(s) - If you're a SIP-only environment, then that wouldn't be a problem, but most * installs (IMO) use some flavor of Zap/DAHDI which has to be addressed/locked. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of David Backeberg Sent: Tuesday, February 24, 2009 10:46 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] multiple asterisks in a server On Tue, Feb 24, 2009 at 2:59 AM, Rilawich Ango 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? ___ -- 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
Re: [asterisk-users] multiple asterisks in a server
On Tue, Feb 24, 2009 at 2:59 AM, Rilawich Ango 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? ___ -- 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
Re: [asterisk-users] multiple asterisks in a server
2009/2/24 Geraint Lee > Almost forgot, you need to make sure you bind each instance to either it's > own IP address or different ports on the same ip, i used 2 IP's for it and > never hda a problem. > > 2009/2/24 Geraint Lee > >> 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 >> - Show quoted text - >> >> 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 >>> >> >> > > ___ > -- 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 > Alternatively, VServer or OpenVZ might help ... (Beware to DHCP is your Asterisk also have to act as DHCP servers) ___ -- 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
Re: [asterisk-users] multiple asterisks in a server
Almost forgot, you need to make sure you bind each instance to either it's own IP address or different ports on the same ip, i used 2 IP's for it and never hda a problem. 2009/2/24 Geraint Lee > 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 - Show quoted text - > > 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 >> > > ___ -- 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
Re: [asterisk-users] multiple asterisks in a server
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 > 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 > ___ -- 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
[asterisk-users] multiple asterisks in a server
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