Dark Developments Where Knowledge Meets Power

26Oct/120

ASTERISK – Move VM issues.

Posted by Dark#Basics

ASTERISK - Move VM issues.

When moving a VM with Asterisk, or another platform dependant package, from for example a VMware Player to VMWare ESXi you might have some issues running the package. In my case after preforming a move from VMware Player to VMWare ESXi using VConverter the ASTERISK package wouldn't start. I received the error message 'Illegal Instruction'. After some Google-ing, trying to convert again using a different VM-version I had an idea of reinstalling the Asterisk package and it worked! Probably when running apt again it installed some additional packages for the new/current chipset. Make sure that you don't overwrite your Asterisk configuration!

3Oct/110

ASTERISK – Installing Asterisk on Debian

Posted by Dark#Basics

ASTERISK - Installing Asterisk on Debian
These instructions installs the components necessary for a standard asterisk configuration. I assume a fresh installation of Debian is installed.

Begin making sure that the package lists is recent:

Select All Code:
1
root@DEBIANX32: apt-get update

And upgrade the current packages to the most recent version:

Select All Code:
1
root@DEBIANX32: apt-get upgrade

First, we must install a working build environment that includes a compiler, linker, etc so that we can configure, compile and install Asterisk.

Select All Code:
1
2
root@DEBIANX32: apt-get install build-essential
root@DEBIANX32: apt-get install libncurses5-dev bison libssl-dev libnewt-dev zlib1g-dev procps gcc make binutils doxygen

Next install the necessary Linux kernel headers, first we need to find the current version.

Select All Code:
1
2
root@DEBIANX32: uname -r
2.6.32-5-686

Then when we know the version we'll install the correct package.

Select All Code:
1
root@DEBIANX32: apt-get install linux-headers-2.6.32-5-686

Now that the operating system is ready we'll download Asterisk and start the installation. First we'll download the package by issuing wget.

Select All Code:
1
root@DEBIANX32: wget %downloadlinkhere%

When the package is installed we'll unpack the TAR-ball.

Select All Code:
1
root@DEBIANX32: tar -xvf %packagename%

To prepare the installation, run the configure scropt with the Asterisk sources.

Select All Code:
1
2
root@DEBIANX32: cd asterisk-%version%
root@DEBIANX32: ./configure

Now we'll begin the compiling.

Select All Code:
1
root@DEBIANX32: make

Finally install the compiled sources by invoking make install.

Select All Code:
1
root@DEBIANX32: make install

After this all the necessary libraries and other resources are installed but you'll notice that the configuration directory is completly empty. Get the sample configuration files by issuing the make samples command.

Select All Code:
1
root@DEBIANX32: make samples

Note: Use only for a fresh install, might overwrite your config!

To setup Asterisk to start and stop automaticly with the system we'll need to init the scripts.

Select All Code:
1
root@DEBIANX32: make config
Filed under: Asterisk, Linux No Comments