делал - плучается:
# /etc/init.d/asterisk start
Starting asterisk: [ OK ]
[root@box7 asterisk]# Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
Остановите все процессы Астериск, и главный - safe_asterisk который всё время переподнимает Астериск после падения. Затем запустите от рута -
su asterisk
asterisk -vvvvgc
и посмотрите на каком модуле он падает, устраните проблему.
Вот что получается.:
[root@box7 adm]# service asterisk stop
Stopping safe_asterisk: [FAILED]
Shutting down asterisk: [FAILED]
[root@box7 adm]#
[root@box7 adm]# su asterisk
This account is currently not available.
после запуска asterisk -vvvvgc грузится лог и все соединяется и начинает работать, как нажмешь CTRL+с все отключается.
у меня centOS sudo asterisk запускается, после asterisk -vvvvgc:
asterisk -vvvvgc
Asterisk 1.6.2.20, Copyright (C) 1999 - 2010 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.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/extconfig.conf': == Found
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect.
[root@box7 romatsar]# asterisk -r
Asterisk 1.6.2.20, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.20 currently running on box7 (pid = 25646)