Asterisk Install: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Line 4: Line 4:
The First thing I did was to download the Asterisk source files.
The First thing I did was to download the Asterisk source files.
<pre>
<pre>
Asterisk 1.6.0.1
Asterisk 1.6.0.5
DAHDI Linux 2.0.0
DAHDI Linux 2.1.0.4
DAHDI Tools 2.0.0
DAHDI Tools 2.1.0.2
Addons 1.6.0
Addons 1.6.0
</pre>
</pre>
Line 15: Line 15:
DAHDI (stands for Digium Asterisk Hardware Device Interface) is the replacement for Zaptel. As I have an [[X100P]] card installed into my system I need to install the Linux driver.  If you do not have any telecommunications cards installed you will still need to do the following so that ztdummy is installed.  This is the timing device so that MOH can be played.
DAHDI (stands for Digium Asterisk Hardware Device Interface) is the replacement for Zaptel. As I have an [[X100P]] card installed into my system I need to install the Linux driver.  If you do not have any telecommunications cards installed you will still need to do the following so that ztdummy is installed.  This is the timing device so that MOH can be played.
<pre>
<pre>
tar xvzf dahdi-linux-2.0.0.tar.gz
tar xvzf dahdi-linux-2.1.0.4.tar.gz
cd dahdi-linux-2.0.0
cd dahdi-linux-2.1.0.4
make
make
make install
make install
Line 24: Line 24:


<pre>
<pre>
tar xvzf dahdi-tools-2.0.0.tar.gz
tar xvzf dahdi-tools-2.1.0.2.tar.gz
cd dahdi-tools-2.0.0
cd dahdi-tools-2.1.0.2


./configure
./configure
Line 59: Line 59:
=== installation ===
=== installation ===
<pre>
<pre>
tar xvzf asterisk-1.6.0.1.tar.gz
tar xvzf asterisk-1.6.0.5.tar.gz
cd asterisk-1.6.0.1
cd asterisk-1.6.0.5
./configure
./configure
make menuselect
make menuselect

Revision as of 03:56, 17 February 2009

Installing Asterisk 1.6.x

OK, Asterisk 1.6.0 is out and I'm going to take the plunge. I am going to document my steps below. The following is based on CentOS 5.2 as been installed with the minimal components including the development tools.

The First thing I did was to download the Asterisk source files.

Asterisk 1.6.0.5
DAHDI Linux 2.1.0.4
DAHDI Tools 2.1.0.2
Addons 1.6.0

I did not download and install the Libpri package as I don't have any primary rate cards installed on my system.

dahdi-linux

DAHDI (stands for Digium Asterisk Hardware Device Interface) is the replacement for Zaptel. As I have an X100P card installed into my system I need to install the Linux driver. If you do not have any telecommunications cards installed you will still need to do the following so that ztdummy is installed. This is the timing device so that MOH can be played.

tar xvzf dahdi-linux-2.1.0.4.tar.gz
cd dahdi-linux-2.1.0.4
make
make install

dahdi-tools

tar xvzf dahdi-tools-2.1.0.2.tar.gz
cd dahdi-tools-2.1.0.2

./configure
make menuselect
make
make install
make config

Once the above is done we need to edit /etc/dahdi/modules and make sure that only the required dahdi module(s) is/are loaded. If you only want ztdummy install you need to remark out all the other drivers.

asterisk

faxing prerequisites

If you would like to be able to use faxing capabilities with Asteirsk you need to install a few packages so that Asterisk can build the faxing components.

First of all edit the file and add the following line:
/etc/ld.so.conf

/usr/local/lib/
yum install libtiff-devel
wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.6pre3.tgz
zcat spandsp-0.0.6pre3.tgz | tar xf -
cd spandsp-0.0.6
./configure
make
make install
ldconfig

installation

tar xvzf asterisk-1.6.0.5.tar.gz
cd asterisk-1.6.0.5
./configure
make menuselect
make
make install
make samples
make config

asterisk-addons

When you have finished the process on this page make sure you have a look at how to record your CDR to MySQL.

prerequisite

One of the main features of the asterisk-addons is the ability to log CDR to mysql. I found that mysql is required to be started for the addons to recognise the requirement of mysqlclienttools.

If you are not interested in logging CDR to mysql then this step is not required.

yum install mysql-server mysql-devel
service mysqld start
chkconfig mysqld on

installation

tar xvzf asterisk-addons-1.6.0.tar.gz
cd asterisk-addons-1.6.0

./configure
make menuselect
make
make install
make config
make samples