*************************
** Dependencias
*************************
apt-get install gcc g++ make -y
apt-get install linux-headers-$(uname -r) -y
apt-get install libncurses5-dev -y
apt-get install sqlite3 libsqlite3-dev dialog unzip -y
apt-get install postgresql php5 php5-pgsql -y
*************************
** Descompactando as apps
*************************
Downloads: https://downloads.asterisk.org/pub/telephony/
Openr2: https://code.google.com/archive/p/openr2/downloads
tar -xvf asterisk-11-current.tar.gz
tar -xvf libpri-1.4-current.tar.gz
tar -xvf dahdi-linux-complete-current.tar.gz
tar -xvf openr2-1.3.3.tar.gz
tar -xvf libss7-2.0-current.tar.gz
gzip -d channel_4.2_005_i686.sh
*************************
** Compilando a Dahdi
*************************
cd /usr/src/dahdi-linux-complete-2.10.0.1+2.10.0.1
make clean
make all
make install
make config
*************************
** Compilando a Libpri
*************************
cd /usr/src/libpri-1.4.15
make clean
make
make install
*************************
** Compilando a Libss7
*************************
cd /usr/src/libss7-2.0.0
make
make install
*************************
** Compilando o OpenR2
*************************
cd /usr/src/openr2-1.3.3
./configure --prefix=/usr
make
make install
*************************
** Instalando Asterisk 11
*************************
cd /usr/src/asterisk-11.14.1
contrib/scripts/install_prereq install
make clean all
./configure --disable-xmldoc
make menuselect
****
** Vá para "Compiler flags" e desabilite "BUILD_NATIVE"
** Salve & saia;
****
make
make install
make samples
make config
ln -s /usr/src/asterisk-11.14.1 /usr/src/asterisk
reboot
*************************
** Install Channel Khomp
*************************
****
** Instalando
****
cd /usr/src/
bash channel_4.2_005_i686.sh
****
** Para remover utilize
** bash channel_4.2_005_i686.sh -j
****