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
как это связано с сип конфом - не догадываюсь.
|