Skip to content

Instantly share code, notes, and snippets.

View csegura2011's full-sized avatar
🤪
I may be slow to respond.

Cristian Segura csegura2011

🤪
I may be slow to respond.
View GitHub Profile
# be sure sed stream editor is installed in the system
$ yum install -y sed
# using sed you can edit the line containing in /etc/sysconfig/selinux file
$ sed -i ‘s/\(^SELINUX=\).*/\SELINUX=disabled/’ /etc/sysconfig/selinux
$ sed -i ‘s/\(^SELINUX=\).*/\SELINUX=disabled/’ /etc/selinux/config
$ yum -y install wget
$ wget downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
$ wget downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
$ wget downloads.asterisk.org/pub/telephony/libpri/libpri-current.tar.gz
$ tar -xzvf asterisk-13-current.tar.gz -C /usr/src
$ tar -xzvf dahdi-linux-complete-current.tar.gz -C /usr/src
$ tar -xzvf libpri-current.tar.gz -C /usr/src
# Installing optional utilities
yum -y install vim # advanced text editor
yum -y install sed # stream editor
yum -y install awk # line editor
yum -y install wget # downloads using http protocol
# Install Compiling tools
yum install -y gcc # GNU C compiler
# Asterisk 13 - Building DAHDI
cd /usr/src/dahdi-linux-complete-x.x.x+x.x.x # check exact version oh dahdi in /usr/src
make all # Build all binaries related with dahdi
make install # Install binaries of DAHDI and DAHDI tools
make config # Install control script ???
# mensaje de error al compilar dahdi
configure: *** dahdi-tools build successfully configured ***
make -C tools all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.11.1+2.11.1/tools'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /usr/src/dahdi-linux-complete-2.11.1+2.11.1/tools/auxdir/missing aclocal-1.15 -I m4
/usr/src/dahdi-linux-complete-2.11.1+2.11.1/tools/auxdir/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
# Repairing DAHDI compilation error
yum install -y autoconf automake m4 perl
cd /usr/src/dahdi-linux-complete-x.x.x+x.x.x/tools
autoreconf -f -i
# Starting compile process again ... and voila
make all
make install
make config
@csegura2011
csegura2011 / Compile LIBPRI (The simple and happy way)
Last active February 16, 2018 23:05
Compile LIBPRI (The simple and happy way)
cd /usr/src/libpri-x.x.x
make all
make install
@csegura2011
csegura2011 / Compile Asterisk 13 (The happy & simple way)
Created February 16, 2018 23:10
Compile Asterisk 13 (The happy & simple way)
cd /usr/src/asterisk-x.x.x
./configure
make all
make install
make samples
make config