Вход | Регистрация
Вы здесь: Главная / Форум / Главный форум по Asterisk / Конфигурация и настройка / Asterisk аварийно закрывается

Asterisk аварийно закрывается

после команды sip reload либо sip prune realtime all
1 234>
Сообщений: 276

Asterisk аварийно закрывается

subj...
астериск тупо сворачивается, команда asterisk -r пишет что процесс не запущен...
помогает перезапуск из /etc/init.d/

где можно посмотреть дамп, чтобы понять причину сбоя?
2009-04-27 16:51

Сообщений: 6521

Re: Asterisk аварийно закрывается

/var/log/asterisk/full
2009-04-27 16:54

Сообщений: 276

Re: Asterisk аварийно закрывается

там только event log (пустой) queue log и messages без всяких core dump
2009-04-27 16:59

Откуда: Санкт-Петербург
Сообщений: 541

Re: Asterisk аварийно закрывается

Настроить логгирование.
Если же и после настройки логгирования ничего нет (ну мало ли что бывает)
"If you really want to see what's going on under the hood you can start Asterisk using:
/usr/sbin/asterisk -vvvvvv -g -dddddd -c "

число v и d при необходимости увеличить по вкусу
2009-04-27 17:12

Сообщений: 276

Re: Asterisk аварийно закрывается

если в кратце, где его настроить?
2009-04-27 17:15

Сообщений: 276

Re: Asterisk аварийно закрывается

параметры запуска такие
* Starting Asterisk: /usr/sbin/asterisk -U asterisk -vvvg -c >& /dev/tty9 < /dev/tty9
2009-04-27 17:16

Откуда: Санкт-Петербург
Сообщений: 541

Re: Asterisk аварийно закрывается

Настраивается - в конфигурационном файле. http://www.voip-info.org/wiki/view/Asterisk+config+logger.conf
Рекомендую так же узнать что такое tty9 и где оно находится.
Цитирование документации, увы, платное.
2009-04-27 17:21

Сообщений: 276

Re: Asterisk аварийно закрывается

настроил файл debug
будем смотреть
2009-04-27 17:40

Сообщений: 276

Re: Asterisk аварийно закрывается

в дебаге только это

[Apr 27 17:28:41] DEBUG[10894] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:28:41] DEBUG[10894] res_odbc.c: Database handle deallocated
[Apr 27 17:28:41] DEBUG[10894] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:28:41] DEBUG[10894] res_odbc.c: Database handle deallocated
[Apr 27 17:31:17] DEBUG[10894] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:31:17] DEBUG[10894] res_odbc.c: Database handle deallocated
[Apr 27 17:31:17] DEBUG[10894] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:31:17] DEBUG[10894] res_odbc.c: Database handle deallocated
[Apr 27 17:39:47] DEBUG[10894] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:39:47] DEBUG[10894] res_odbc.c: Database handle deallocated
[Apr 27 17:39:47] DEBUG[10894] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:39:47] DEBUG[10894] res_odbc.c: Database handle deallocated
[Apr 27 17:40:28] DEBUG[10894] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:40:28] DEBUG[10894] res_odbc.c: Database handle deallocated
[Apr 27 17:40:28] DEBUG[10894] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:40:28] DEBUG[10894] res_odbc.c: Database handle deallocated
[Apr 27 17:43:28] DEBUG[11532] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:43:28] DEBUG[11532] res_odbc.c: Database handle deallocated
[Apr 27 17:43:28] DEBUG[11532] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:43:28] DEBUG[11532] res_odbc.c: Database handle deallocated
[Apr 27 17:44:48] DEBUG[11532] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:44:48] DEBUG[11532] res_odbc.c: Database handle deallocated
[Apr 27 17:44:48] DEBUG[11532] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:44:48] DEBUG[11532] res_odbc.c: Database handle deallocated
[Apr 27 17:45:46] DEBUG[11532] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:45:46] DEBUG[11532] res_odbc.c: Database handle deallocated
[Apr 27 17:45:46] DEBUG[11532] res_odbc.c: Disconnected 0 from asterisk-local [asterisk-conf-local]
[Apr 27 17:45:46] DEBUG[11532] res_odbc.c: Database handle deallocated


обычно падает после этого (постоянные реконнекты с БД)


[Apr 27 17:40:28] WARNING[10894]: res_odbc.c:121 ast_odbc_prepare_and_execute: SQL Execute returned an error -1: 01000: [unixODBC]Error while executing the query (non-fatal);
ERROR: duplicate key value violates unique constraint "idx_sip_conf_username" (133)
[Apr 27 17:40:28] WARNING[10894]: res_odbc.c:129 ast_odbc_prepare_and_execute: SQL Execute error -1! Attempting a reconnect...
[Apr 27 17:40:28] WARNING[10894]: res_odbc.c:221 ast_odbc_sanity_check: Connection is down attempting to reconnect...
[Apr 27 17:40:28] NOTICE[10894]: res_odbc.c:592 odbc_obj_connect: Connecting asterisk-local
[Apr 27 17:40:28] NOTICE[10894]: res_odbc.c:606 odbc_obj_connect: res_odbc: Connected to asterisk-local [asterisk-conf-local]
[Apr 27 17:40:28] WARNING[10894]: res_odbc.c:121 ast_odbc_prepare_and_execute: SQL Execute returned an error -1: 01000: [unixODBC]Error while executing the query (non-fatal);
ERROR: duplicate key value violates unique constraint "idx_sip_conf_username" (133)
[Apr 27 17:40:28] WARNING[10894]: res_odbc.c:129 ast_odbc_prepare_and_execute: SQL Execute error -1! Attempting a reconnect...
[Apr 27 17:40:28] WARNING[10894]: res_odbc.c:221 ast_odbc_sanity_check: Connection is down attempting to reconnect...
[Apr 27 17:40:28] NOTICE[10894]: res_odbc.c:592 odbc_obj_connect: Connecting asterisk-local
[Apr 27 17:40:28] NOTICE[10894]: res_odbc.c:606 odbc_obj_connect: res_odbc: Connected to asterisk-local [asterisk-conf-local]
msk01AsteriskSrv01*CLI>
Disconnected from Asterisk server
[Apr 27 17:40:28] Executing last minute cleanups
msk01AsteriskSrv01 mon # asterisk -r
Asterisk 1.6.0.9, Copyright (C) 1999 - 2008 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.
=========================================================================
[Apr 27 17:40:37] == Parsing '/etc/asterisk/extconfig.conf': [Apr 27 17:40:37] == Found
[Apr 27 17:40:37] == Binding sipusers to odbc/asterisk-local/sip_conf
[Apr 27 17:40:37] == Binding sippeers to odbc/asterisk-local/sip_conf
[Apr 27 17:40:37] == Binding extensions to odbc/asterisk-local/extensions_conf
[Apr 27 17:40:37] == Binding queue_log to odbc/asterisk-local/queue_log
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)



дальше только перезапуск

msk01AsteriskSrv01 mon # /etc/init.d/asterisk restart
* Stopping Asterisk ... [ ok ]
* Starting Asterisk: /usr/sbin/asterisk -U asterisk -vvvg -c >& /dev/tty9 < /dev/tty9 ...
* Initing Digium Card ... [ ok ]
* Changing access to /dev/dahdi/* ... [ ok ]
msk01AsteriskSrv01 mon # asterisk -r
Asterisk 1.6.0.9, Copyright (C) 1999 - 2008 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.
=========================================================================
[Apr 27 17:40:51] == Parsing '/etc/asterisk/extconfig.conf': [Apr 27 17:40:51] == Found
[Apr 27 17:40:51] == Binding sipusers to odbc/asterisk-local/sip_conf
[Apr 27 17:40:51] == Binding sippeers to odbc/asterisk-local/sip_conf
[Apr 27 17:40:51] == Binding extensions to odbc/asterisk-local/extensions_conf
[Apr 27 17:40:51] == Binding queue_log to odbc/asterisk-local/queue_log
[Apr 27 17:40:51] Connected to Asterisk 1.6.0.9 currently running on msk01AsteriskSrv01 (pid = 11486)
Verbosity is at least 3


как это связано с сип конфом - не догадываюсь.

2009-04-27 17:48

Сообщений: 276

Re: Asterisk аварийно закрывается

подскажите где копать
2009-04-28 09:39

1 234>
Добавить страницу в закладки:  Delicious Google Slashdot Yahoo Yandex.ru Reddit Digg Technorati Bobrdobr.ru Newsland.ru Smi2.ru Rumarkz.ru Vaau.ru Memori.ru Rucity.com Moemesto.ru News2.ru Mister-Wong.ru Myscoop.ru 100zakladok.ru