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
@csegura2011
csegura2011 / Checking Dahdi was installed
Created February 16, 2018 23:22
Checking Dahdi was installed
$ dahdi_ <TAB> <TAB>
dahdi_cfg
dahdi_maint
dahdi_scan
dahdi_speed
dahdi_waitfor_span_assignments
dahdi_genconf
dahdi_monitor
dahdi_span_assignments
dahdi_test
@csegura2011
csegura2011 / Checking Asterisk service status on CentOS7-RHEL7
Last active February 16, 2018 23:20
Checking Asterisk service status on CentOS7-RHEL7
$ systemctl status asterisk
● asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
Active: active (running) since Wed 2017-07-19 19:29:42 -04; 1h 39min ago
Docs: man:systemd-sysv-generator(8)
Process: 889 ExecStart=/etc/rc.d/init.d/asterisk start (code=exited, status=0/SUCCESS)
Main PID: 942 (asterisk)
CGroup: /system.slice/asterisk.service
├─937 /bin/sh /usr/sbin/safe_asterisk
└─942 /usr/sbin/asterisk -f -vvvg -c
@csegura2011
csegura2011 / Starting Asterisk 13 on CentOS7-RHEL7 Server
Created February 16, 2018 23:13
Starting Asterisk 13 on CentOS7/RHEL7 Server
systemctl start asterisk
@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
@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
# 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
# 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:
# 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 ???
# 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
$ 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