D
D
Dmitry Tallmange2014-09-11 19:17:06
linux
Dmitry Tallmange, 2014-09-11 19:17:06

Why is asterisk not working?

I have the following environment:

[root@asterisk ~]# lsb_release -a
LSB Version:	:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID:	CentOS
Description:	CentOS release 6.5 (Final)
Release:	6.5
Codename:	Final
[root@asterisk ~]# uname -a
Linux asterisk 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu Jun 19 21:14:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@asterisk ~]# cat /proc/cpuinfo | grep 'model name'
model name	: Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz
[root@asterisk ~]# asterisk -rx 'core show version'
Asterisk 11.11.0 built by root @ asterisk on a x86_64 running Linux on 2013-12-30 05:36:21 UTC

When launched via service asterisk start , the asterisk ALWAYS crashes with the standard error Asterisk died with code 1 , and does not make a single line of logs.
I immediately run safe_asterisk -U asterisk -G asterisk -vvvvvvvc on my own - it starts working.
Checked a million times with different variations.
And amportal start always works (it costs FreePBX).
Googled. Usually, in this case, it is advised to look at the logs for the place where the case occurs. BUT! When you start it manually, everything works right away, but when you start it through the service, there are no logs at all.
I would be grateful for any advice!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
s1dney, 2014-09-11
@s1dney

In the config file, turn the log level higher.

S
Sergey Petrikov, 2014-09-11
@RicoX

See the answer in:
If you wang, then try:

killall -9 safe_asterisk
killall -9 asterisk

Then run like this:
look at which module swears and disable it in modules.conf

V
Vladimir, 2014-09-11
@rostel

Possible rights issues

chown asterisk:asterisk -R /var/log/asterisk
chown asterisk:asterisk -R /var/run/asterisk
su asterisk
asterisk -cvvvvddddd

if the problem persists show /etc/asterisk/modules.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question