Asterisk Install: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Online book =
[http://ofps.oreilly.com/titles/9780596517342/index.html Asterisk™: The Definitive Guide]
= Check List =
Check the [[Asterisk_Check_List | Asterisk Check List]] as a guide for all required product installation.
= Prerequisite =
= Prerequisite =
Make sure all your compilers are installed.
Make sure all your prerequisites are installed.
<pre>
yum -y install make wget openssl-devel ncurses-devel subversion newt newt-static newt-devel libxml2-devel kernel-devel gcc gcc-c++ mysql sqlite-devel uuid-devel libuuid-devel speex-devel
</pre>
 
== For Asterisk 12 and 13 ==
<pre>
cd /usr/src/
wget http://www.digip.org/jansson/releases/jansson-2.9.tar.gz
tar xvf jansson-2.9.tar.gz
rm -f jansson-2.9.tar.gz
cd jansson-2.9
 
./configure
make
make install
make check
</pre>
 
 
'''Note''': The following command relies on rpmforge being installed for uriparser
<pre>
<pre>
yum -y install make gcc gcc-c++ ncurses-devel libtermcap-devel kernel-devel openssl-devel newt-devel zlib-devel
yum -y install libuuid libxslt uriparser
</pre>
</pre>


= Installing Asterisk 1.6.x =
= Installing Asterisk =
If you are wanting a nice simple way to install asterisk, have a look at [[Aster-install]]. The following is based on CentOS 5.2 as been installed.


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.2.9
Asterisk 11.x.0
DAHDI Linux 2.3.0.1
DAHDI Tools 2.3.0
Addons 1.6.2.1
</pre>
</pre>


I did not download and install the Libpri package as I don't have any primary rate cards installed on my system.
I did not download and install the Libpri or DAHDi packages as I don't have any primary rate cards installed on my system and as I no longer use MeetMe witch is reliant on a timing device with DAHDi I now use ConfBridge so there are less Linux dependencies to install.


'''NOTE''': If you would like to download, install and use the latest and greatest version of Asterisk (the cutting edge) download the files listed on the [[Asterisk_SVN_Install|Asterisk SVN Install]] page.  If you do download the SVN files don't download the files listed below.
'''NOTE''': If you would like to download, install and use the latest and greatest version of Asterisk (the cutting edge) download the files listed on the [[Asterisk_SVN_Install|Asterisk SVN Install]] page.  If you do download the SVN files don't download the files listed below.
Line 23: Line 45:
mkdir /usr/src/asterisk
mkdir /usr/src/asterisk
cd /usr/src/asterisk
cd /usr/src/asterisk
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.6.2.9.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.6.2.1.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
wget http://downloads.digium.com/pub/telephony/dahdi-linux/releases/dahdi-linux-2.3.0.1.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
wget http://downloads.digium.com/pub/telephony/dahdi-tools/dahdi-tools-2.3.0.tar.gz
wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.11.3.tar.gz
</pre>
</pre>


== dahdi-linux ==
== 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.
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 MeetMe and or ConfBridge functions correctly.
<pre>
<pre>
tar xvzf dahdi-linux-2.3.0.1.tar.gz
tar xvzf dahdi-linux-complete-current.tar.gz
cd dahdi-linux-2.3.0.1
cd dahdi-linux-complete-2.7.0+2.7.0
make
make
make install
make install
make config
</pre>
</pre>


== dahdi-tools ==
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.


== lipbri ==
Install lipbri is you are connecting to a PRI service. With the later version of the libpri there is a dependency of dahdi to be installed.
<pre>
<pre>
tar xvzf dahdi-tools-2.3.0.tar.gz
tar xvzf libpri-1.4-current.tar.gz
cd dahdi-tools-2.3.0
cd libpri-1.4.14
 
./configure
make menuselect
make
make
make install
make install
make config
</pre>
</pre>
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 ==
== asterisk ==
Line 58: Line 75:
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.
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:<br>
Execute the following line to add /usr/local/lib/ to '''/etc/ld.so.conf'''.
'''/etc/ld.so.conf'''
<pre>
<pre>
/usr/local/lib/
echo /usr/local/lib/ >> /etc/ld.so.conf
</pre>
</pre>


<pre>
<pre>
yum install libtiff-devel
yum -y install libtiff-devel


cd /usr/src
cd /usr/src
wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.6pre17.tgz
wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.6.tar.gz
zcat spandsp-0.0.6pre17.tgz | tar xf -
tar xvf spandsp-0.0.6.tar.gz
cd spandsp-0.0.17
cd spandsp-0.0.6
./configure
./configure
make
make
Line 79: Line 95:
=== installation ===
=== installation ===
<pre>
<pre>
cd /usr/src/asterisk
cd /usr/src
tar xvzf asterisk-1.6.2.9.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
cd asterisk-1.6.2.9
tar xvzf asterisk-13-current.tar.gz
./configure
cd asterisk-13.17.1
./contrib/scripts/get_mp3_source.sh
./configure --libdir=/usr/lib64
make menuselect
make menuselect
make
make
Line 88: Line 106:
make samples
make samples
make config
make config
ldconfig
</pre>
</pre>


== asterisk-addons ==
==== verbose ====
When you have finished the process on this page make sure you have a look at how to record your [[Cdr|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.<br>
 
If you are not interested in logging CDR to mysql then this step is not required.
<pre>
<pre>
yum install mysql-server mysql-devel
vi /etc/asterisk/asterisk.conf
service mysqld start
chkconfig mysqld on
</pre>
</pre>


=== installation ===
Modify verbose= to suite your default verbosity level.
<pre>
tar xvzf asterisk-addons-1.6.2.1.tar.gz
cd asterisk-addons-1.6.2.1


./configure
== asterisk-addons ==
make menuselect
When you have finished the process on this page make sure you have a look at how to record your [[Asterisk_CDR_Tables|CDR]] to MySQL.
make
make install
make samples
</pre>


[[Category : Asterisk]]
[[Category : Asterisk]]

Latest revision as of 01:04, 4 September 2017

Online book

Asterisk™: The Definitive Guide

Check List

Check the Asterisk Check List as a guide for all required product installation.

Prerequisite

Make sure all your prerequisites are installed.

yum -y install make wget openssl-devel ncurses-devel subversion newt newt-static newt-devel libxml2-devel kernel-devel gcc gcc-c++ mysql sqlite-devel uuid-devel libuuid-devel speex-devel

For Asterisk 12 and 13

cd /usr/src/
wget http://www.digip.org/jansson/releases/jansson-2.9.tar.gz
tar xvf jansson-2.9.tar.gz
rm -f jansson-2.9.tar.gz
cd jansson-2.9

./configure
make
make install
make check


Note: The following command relies on rpmforge being installed for uriparser

yum -y install libuuid libxslt uriparser

Installing Asterisk

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

Asterisk 11.x.0

I did not download and install the Libpri or DAHDi packages as I don't have any primary rate cards installed on my system and as I no longer use MeetMe witch is reliant on a timing device with DAHDi I now use ConfBridge so there are less Linux dependencies to install.

NOTE: If you would like to download, install and use the latest and greatest version of Asterisk (the cutting edge) download the files listed on the Asterisk SVN Install page. If you do download the SVN files don't download the files listed below.

mkdir /usr/src/asterisk
cd /usr/src/asterisk
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz

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 MeetMe and or ConfBridge functions correctly.

tar xvzf dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete-2.7.0+2.7.0
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.

lipbri

Install lipbri is you are connecting to a PRI service. With the later version of the libpri there is a dependency of dahdi to be installed.

tar xvzf libpri-1.4-current.tar.gz
cd libpri-1.4.14
make
make install

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.

Execute the following line to add /usr/local/lib/ to /etc/ld.so.conf.

echo /usr/local/lib/ >> /etc/ld.so.conf
yum -y install libtiff-devel

cd /usr/src
wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.6.tar.gz
tar xvf spandsp-0.0.6.tar.gz
cd spandsp-0.0.6
./configure
make
make install
ldconfig

installation

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar xvzf asterisk-13-current.tar.gz
cd asterisk-13.17.1
./contrib/scripts/get_mp3_source.sh
./configure --libdir=/usr/lib64
make menuselect
make
make install
make samples
make config
ldconfig

verbose

vi /etc/asterisk/asterisk.conf

Modify verbose= to suite your default verbosity level.

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.