Asterisk Install: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
= Prerequisite = | = Prerequisite = | ||
Make sure all your | Make sure all your prerequisites are installed. | ||
<pre> | <pre> | ||
yum -y install | yum -y install gcc gcc-c++ make wget subversion libxml2-devel ncurses-devel openssl-devel vim-enhanced kernel-devel | ||
</pre> | </pre> | ||
= Installing Asterisk 1. | = Installing Asterisk 1.8.x = | ||
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. | Asterisk 1.8.7.0 | ||
DAHDI Linux | DAHDI Linux and Tools 2.5.0.1 | ||
</pre> | </pre> | ||
Line 23: | Line 20: | ||
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. | wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.8.7.0.tar.gz | ||
wget http://downloads. | wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.5.0.1+2.5.0.1.tar.gz | ||
wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.12.tar.gz | |||
wget http://downloads. | |||
</pre> | </pre> | ||
== | == lipbri == | ||
Install lipbri is you are connecting to a PRI service. | |||
<pre> | <pre> | ||
tar xvzf | tar xvzf libpri-1.4.12.tar.gz | ||
cd | cd libpri-1.4.12 | ||
make | make | ||
make install | make install | ||
</pre> | </pre> | ||
== 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. | |||
<pre> | <pre> | ||
tar xvzf dahdi- | tar xvzf dahdi-linux-complete-2.5.0.1+2.5.0.1.tar.gz | ||
cd dahdi- | cd dahdi-linux-complete-2.5.0.1+2.5.0.1 | ||
. | |||
make | make | ||
make install | make install | ||
Line 58: | Line 51: | ||
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 | First of all add the following line to '''/etc/ld.so.conf'''. | ||
'''/etc/ld.so.conf''' | |||
<pre> | <pre> | ||
/usr/local/lib/ | echo /usr/local/lib/ >> /etc/ld.so.conf | ||
</pre> | </pre> | ||
Line 80: | Line 72: | ||
<pre> | <pre> | ||
cd /usr/src/asterisk | cd /usr/src/asterisk | ||
tar xvzf asterisk-1. | tar xvzf asterisk-1.8.7.0.tar.gz | ||
cd asterisk-1. | cd asterisk-1.8.7.0 | ||
./contrib/scripts/get_ilbc_source.sh | |||
./contrib/scripts/get_mp3_source.sh | |||
./configure | ./configure | ||
make menuselect | make menuselect | ||
make | make | ||
Line 94: | Line 86: | ||
== asterisk-addons == | == asterisk-addons == | ||
When you have finished the process on this page make sure you have a look at how to record your [[Cdr|CDR]] to MySQL. | When you have finished the process on this page make sure you have a look at how to record your [[Cdr|CDR]] to MySQL. | ||
[[Category : Asterisk]] | [[Category : Asterisk]] |
Revision as of 06:53, 4 October 2011
Prerequisite
Make sure all your prerequisites are installed.
yum -y install gcc gcc-c++ make wget subversion libxml2-devel ncurses-devel openssl-devel vim-enhanced kernel-devel
Installing Asterisk 1.8.x
The First thing I did was to download the Asterisk source files.
Asterisk 1.8.7.0 DAHDI Linux and Tools 2.5.0.1
I did not download and install the Libpri package as I don't have any primary rate cards installed on my system.
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.digium.com/pub/asterisk/releases/asterisk-1.8.7.0.tar.gz wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.5.0.1+2.5.0.1.tar.gz wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.12.tar.gz
lipbri
Install lipbri is you are connecting to a PRI service.
tar xvzf libpri-1.4.12.tar.gz cd libpri-1.4.12 make make install
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-complete-2.5.0.1+2.5.0.1.tar.gz cd dahdi-linux-complete-2.5.0.1+2.5.0.1 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 add the following line to /etc/ld.so.conf.
echo /usr/local/lib/ >> /etc/ld.so.conf
yum install libtiff-devel cd /usr/src wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.6pre17.tgz zcat spandsp-0.0.6pre17.tgz | tar xf - cd spandsp-0.0.6 ./configure make make install ldconfig
installation
cd /usr/src/asterisk tar xvzf asterisk-1.8.7.0.tar.gz cd asterisk-1.8.7.0 ./contrib/scripts/get_ilbc_source.sh ./contrib/scripts/get_mp3_source.sh ./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.