Script de Instalação do Asterisk Servidor Voip PBX

Asterisk

Asterisk

apenas copie essas linhas em um script e execute como root!

#!/bin/bash
#comandos para instalação do Asterisk nos RPMs-like
#Para compilar os pacotes tenha certeza que tenha instalados os pacotes:
#- gcc

adduser asterisk

yum -y install subversion gcc
yum -y install bison openssl zlib ncurses
yum -y install build-essential
yum -y install libncurses-dev
yum -y install doxygen

cd /usr/src

wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.7.tar.gz
wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.12.tar.gz
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.6.0.1.tar.gz
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.tar.gz
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.6.0.tar.gz

tar -zxvf libpri-1.4.7.tar.gz
tar -zxvf zaptel-1.4.12.tar.gz
tar -zxvf asterisk-1.6.0.1.tar.gz
tar -zxvf asterisk-sounds-1.2.1.tar.gz
tar -zxvf asterisk-addons-1.6.0.tar.gz

cd /usr/src/libpri-1.4.7/
make
make install

cd /usr/src/zaptel-1.4.12/
./configure
make
make install
make config

cd /usr/src/asterisk-1.6.0.1/
./configure
make
make install
make samples
make progdocs
make config

#subir os modulos:
modprobe zaptel
modprobe ztdummy

service asterisk start

asterisk -vvvgcr

#e-pronto!