Answer the question
In order to leave comments, you need to log in
Why is asterisk not logging?
Good afternoon.
For some reason, the asterisk does not write the full log to the file. Please help me figure out why...
Call Detail Record (CDR) settings
----------------------------------
Logging: Enabled
Mode: Simple
Log unanswered calls: No
Log congestion: No
* Registered Backends
-------------------
mysql
cdr-custom
Adaptive ODBC
Channel Type Status Configuration
------- ---- ------ -------------
/var/log/asterisk/full File Enabled - DEBUG NOTICE WARNING ERROR VERBOSE DTMF FAX
/var/log/asterisk/error File Enabled - WARNING ERROR
Console Enabled - NOTICE WARNING ERROR DTMF
/var/log/asterisk/security File Enabled - SECURITY
Answer the question
In order to leave comments, you need to log in
In logger.conf add a line like this:
Then, asterisk -x 'logger reload' and in the verbose file you should get the same output as in the console with verbose 5
asterisk -r
*CLI> core set verbose 3
Добрый день.
Call Detail Records тут вообще не к месту, если Вы говорите о логах, а не детализации звонков.
Вам нужно смотреть файл logger.conf, а точнее секцию [logfiles]
там есть строки:
debug => debug
console => notice,warning,error
messages => notice,warning,error
full => notice,warning,error,verbose
syslog.local0 => notice,warning,error
То есть если вам в логе full не нужны дебаги, делайте как в этом примере.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question