Created
March 15, 2017 14:38
-
-
Save fagnersilva/2f5086fa614cb0d157a023651827bc7d to your computer and use it in GitHub Desktop.
Instalando Asterisk 14.3 no Debian 8.7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Instalando Asterisk 14.3 no Debian 8.7 | |
| openr2 2-1.3.3 | |
| libpri 1.6 | |
| DAHDI 2.10.2 | |
| Asterisk 14.3 | |
| ================================================================== | |
| Dependencias Básicas: | |
| ================================================================== | |
| apt install build-essential subversion git vim wget libssl-dev libncurses5-dev libnewt-dev libxml2-dev linux-headers-$(uname -r) libsqlite3-dev uuid-dev | |
| ================================================================== | |
| Download dos Pacotes: | |
| ================================================================== | |
| cd /usr/src/fontes | |
| wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/openr2/openr2-1.3.3.tar.gz | |
| wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.6.0.tar.gz | |
| wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-2.10.2+2.10.2.tar.gz | |
| wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-14.3.0.tar.gz | |
| ================================================================== | |
| Extraindo os pacotes | |
| ================================================================== | |
| tar zxvf openr* | |
| tar zxvf libpri* | |
| tar zxvf dahdi-linux-complete* | |
| tar zxvf asterisk* | |
| ================================================================== | |
| Install openr2 | |
| ================================================================== | |
| cd openr* | |
| ./configure --prefix=/usr && make && make install | |
| ================================================================== | |
| Install libpri | |
| ================================================================== | |
| cd /usr/src/fontes/libpri* | |
| make && make install | |
| ================================================================== | |
| Install dahdi | |
| ================================================================== | |
| cd /usr/src/fontes/dahdi-linux-complete* | |
| make && make install && make config | |
| ================================================================== | |
| Install Asterisk e pjsip | |
| ================================================================== | |
| cd /usr/src/fontes/asterisk* | |
| ./contrib/scripts/install_prereq install | |
| ./contrib/scripts/install_prereq install-unpackaged | |
| ./configure --with-pjproject-bundled && make menuselect && make && make install && make config && make samples | |
| ================================================================== | |
| Iniciar o DAHDI | |
| ================================================================== | |
| systemctl enable dadhi | |
| systemctl start dahdi | |
| ================================================================== | |
| Comentando os módulos que não serão usados: | |
| ================================================================== | |
| vim /etc/dahdi/modules | |
| ####Confirmar os modelos###### | |
| ================================================================== | |
| Iniciando o Asterisk | |
| ================================================================== | |
| systemctl enable asterisk | |
| systemctl start asterisk | |
| ================================================================== | |
| Crie alias pra acessar a CLI | |
| ================================================================== | |
| vim ~/.bashrc | |
| alias trxcall='rasterisk -cgivvvv' | |
| source ~/.bashrc | |
| trxcall | |
| ================================================================== | |
| Verifique as versões DAHDI e libpri na CLI do Asterisk | |
| ================================================================== | |
| *CLI> dahdi show version | |
| DAHDI Version: 2.10.2 Echo Canceller: HWEC | |
| *CLI> pri show version | |
| libpri version: 1.6.0 | |
| ================================================================== | |
| Limpando o SO | |
| ================================================================== | |
| apt-get autoclean && apt-get autoremove |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment