dahili
June 9, 2018, 11:02pm
1
Asterisk randomly drops all active calls, how can i stop asterisk to reloading or restarting it self?
Asterisk 15.4.0, Copyright © 1999 - 2016, Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
Running as user ‘asterisk’
Running under group ‘asterisk’
Connected to Asterisk 15.4.0 currently running on a (pid = 4186)
aCLI>
a CLI>
[2018-06-10 01:57:36] NOTICE[4263]: chan_sip.c:24708 handle_response_peerpoke: Peer ‘20’ is now Lagged. (3312ms / 2000ms)
[2018-06-10 01:57:47] NOTICE[4263]: chan_sip.c:24708 handle_response_peerpoke: Peer ‘20’ is now Reachable. (410ms / 2000ms)
Asterisk cleanly ending (0).
Executing last minute cleanups
== Destroying musiconhold processes
== Manager unregistered action DBGet
== Manager unregistered action DBPut
== Manager unregistered action DBDel
== Manager unregistered action DBDelTree
a*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
Looks to me as though someone told Asterisk to stop.
The bug report doesn’t seem to contain enough information to progress it. In particular, I would expect calls to be dropped during “last minute cleanups”, or that “last minute cleanups” wouldn’t be attempted until all calls had already dropped.
Without checking the source code, the sequence of the messages suggests the latter, i.e. all calls will have been dropped before that message is output.
As I previously said, the logging presented so far appears to be showing a normal, manual, shut down, not a crash.
I wonder if someone has hit the interrupt key on a console on which Asterisk is running in the foreground.
dahili
June 10, 2018, 6:49pm
6
I created 3 Centos 6.9 vps to test this issue, all of them same, it is keep cleaning it self and dropps active calls at same time, is there any one knows how to stop this auto cleaning mecanism?
What it is the installation process you re using ?
There isn’t an auto-cleaning mechanism. You are misunderstanding a normal message produced during a normal shut down.
Once Asterisk has got rid of all the calls in progress, it frees up various resources before finally stopping. The message is just saying it is about to switch the lights off, set the burglar alarm and close the front door (don’t take that too literally!). You need to understand why it is stopping, and why it thinks it was as normal controlled stop.
dahili
June 10, 2018, 11:36pm
9
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
Did you disable the SELinux?
dahili
June 10, 2018, 11:40pm
11
yes selinux disabled
SELINUX=disabled
SELINUXTYPE=targeted