B
B
bamond2016-05-20 14:36:06
Asterisk
bamond, 2016-05-20 14:36:06

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

I would like to see in the logs the usual output of the Astaire console ... macro execution, errors during this, etc. ... and errors, security, debug (if enabled) get there ....
I don’t get the maximum detailed info about a call through deban I need .... I need the usual log of the server (as in the console)
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Shitskov, 2016-05-20
@bamond

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

V
Vladimir, 2016-05-20
@rostel

asterisk -r
*CLI> core set verbose 3

look in asterisk.conf the default verbose level is set there

I
Ilya Brazhnikov, 2016-05-20
@Ilyabr

Добрый день.
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 question

Ask a Question

731 491 924 answers to any question