CentOS-6.9 minimal
installing asterisk-15.4.0.tar.gz to /opt/pbx
author oguz ersoz
yum groupinstall “Development tools”
groupadd asterisk -g 1000 -p !
useradd asterisk -u 1000 -g 1000 -p !
yum install epel-release
yum install remi-release-6.rpm
yum install rpmforge-release-6.rpm
yum install libgmime-2.4.so.2
libportaudio.so.2
libcpg.so.4
libbluetooth.so.3
libjack.so.0
libspandsp.so.2
portaudio-devel
jack-audio-connection-kit
libresample
gmime
libjansson.so.4
jansson-devel
libxslt-1.1.26-2.el6_3.1.x86_64
fail2ban
gsm
libsrtp
speex
libical.so.0
libtonezone.so.2.0
libunbound.so.2
libilbc.so.0
libiksemel.so.3
libcodec2.so.0.7
libisdnnet.so.0
ldconfig
cd /usr/src
yum install
glibc-devel
ncurses-devel
openssl-devel
zlib-devel
pjproject
pjproject-devel
fftw-devel
libuuid-devel
libpri
opus
codec2
silk
siren7
siren14
g729a
ldconfig
fftw
[ -f fftw-3.3.6-pl2 ] && echo “fftw-3.3.6-pl2 src dir not exist” || rm -fR fftw-3.3.6-pl2
[ -f fftw-3.3.6-pl2.tar.gz ] && tar -zxvf fftw-3.3.6-pl2.tar.gz || wget http://www.fftw.org/fftw-3.3.6-pl2.tar.gz ; tar -zxvf fftw-3.3.6-pl2.tar.gz
chown root:root fftw-3.3.6-pl2
cp /usr/src/fftw-3.3.6-pl2/api/fftw3.* /usr/include/
rm -fR /usr/src/fftw-3.3.6-pl2
fftw
cd /usr/src
rm /usr/include/db.h
ln -s /usr/include/db4/db.h /usr/include/db.h
rm /usr/include/db_cxx.h
ln -s /usr/include/db4/db_cxx.h /usr/include/db_cxx.h
rm /usr/include/db_185.h
ln -s /usr/include/db4/db_185.h /usr/include/db_185.h
rm /usr/include/png.h
ln -s /usr/include/libpng12/png.h /usr/include/png.h
rm /usr/include/pngconf.h
ln -s /usr/include/libpng12/pngconf.h /usr/include/pngconf.h
rm /usr/include/ncurses.h
ln -s /usr/include/curses.h /usr/include/ncurses.h
rm /usr/include/iLBC_decode.h
ln -s /usr/include/ilbc.h /usr/include/iLBC_decode.h
rm /usr/include/iLBC_define.h
ln -s /usr/include/ilbc.h /usr/include/iLBC_define.h
rm /usr/include/iLBC_encode.h
ln -s /usr/include/ilbc.h /usr/include/iLBC_encode.h
rm /usr/include/gdbm.h
ln -s /usr/include/gdbm/gdbm.h /usr/include/gdbm.h
rm /usr/include/gsm.h
ln -s /usr/include/gsm/gsm.h /usr/include/gsm.h
rm /usr/include/glib
ln -s /usr/include/glib-2.0/glib /usr/include/glib
rm /usr/include/gobject
ln -s /usr/include/glib-2.0/gobject /usr/include/gobject
rm /usr/include/gmodule.h
ln -s /usr/include/glib-2.0/gmodule.h /usr/include/gmodule.h
rm /usr/include/gmime
ln -s /usr/include/gmime-2.6/gmime /usr/include/gmime
rm /usr/include/gio
ln -s /usr/include/glib-2.0/gio /usr/include/gio
rm /usr/include/glib.h
ln -s /usr/include/glib-2.0/glib.h /usr/include/glib.h
rm /usr/include/glibconfig.h
ln -s /usr/lib64/glib-2.0/include/glibconfig.h /usr/include/glibconfig.h
rm /usr/include/glib-object.h
ln -s /usr/include/glib-2.0/glib-object.h /usr/include/glib-object.h
cd /usr/src
[ -f asterisk-15.4.0 ] && echo “asterisk-15.4.0 src dir not exist” || rm -fR asterisk-15.4.0
[ -f asterisk-15.4.0.tar.gz ] && tar -zxvf asterisk-15.4.0.tar.gz || wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-15-current.tar.gz ; mv asterisk-15-current.tar.gz asterisk-15.4.0.tar.gz ; tar -zxvf asterisk-15.4.0.tar.gz
chown root:root -fR …/asterisk-15*
chmod 700 -fR …/asterisk-15*
cd /usr/src/asterisk-15.4.0
rm .asterisk_history
./contrib/scripts/install_prereq install
ldconfig
do not enable --enable-coverage makes profile files in src dir on each restart
this is ok
./configure --srcdir=/usr/src/asterisk-15.4.0 --prefix=/opt/pbx --bindir=/opt/pbx/bin --sbindir=/opt/pbx/bin --libexecdir=/opt/pbx/bin --sysconfdir=/opt/pbx/etc --localstatedir=/opt/pbx/var --libdir=/opt/pbx/lib --includedir=/opt/pbx/include --oldincludedir=/opt/pbx/include --enable-dev-mode --enable-internal-poll --with-asound --with-bfd --with-codec2 --with-cpg --with-crypto --with-download-cache=/usr/src --with-gmime --with-gnu-ld --with-gsm --with-ical --with-iconv --with-iksemel --with-ilbc --with-inotify --with-jack --with-jansson --with-ldap --with-libcurl --with-libedit --with-libxml2 --with-libxslt --with-lua --with-mysqlclient --with-neon --with-neon29 --with-netsnmp --with-newt --with-ogg --with-opus --with-oss --with-pjproject --with-pjproject-bundled --with-popt --with-portaudio --with-postgres --with-radius --with-resample --with-sndfile --with-sounds-cache=/usr/src --with-spandsp --with-speex --with-speexdsp --with-sqlite --with-sqlite3 --with-srtp --with-ssl --with-tds --with-timerfd --with-unbound --with-unixodbc --with-uriparser --with-vorbis --with-z
cd /usr/src/asterisk-15.4.0
make menuselect
(Than i selected all most all options in menu)
than make and make install
config mysql @realtime
gui my own php mysql gui
ssl certificate installed
websochet configured with doubango webrtc2sip and works fine
all modules works fine, only calls are drops randomly, some time we talk 3 min, some time we talk few second, some time wa talk so long, this is random time,
if ny one wants to inspect server i will give credentials to who wants inspect situation
also server has turkish sound set may be better asterisk can put those to reposito