J
J
Janus742020-09-14 07:19:23
Asterisk
Janus74, 2020-09-14 07:19:23

How to return logs in asterisk CLI?

Hello! In the CLI, it stopped displaying dialplan events, and when I turn on the sip debug, the messages are also not displayed in the CLI. Logger show channels showed:

freepbx*CLI> Logger show channels
Logger queue limit: 1000

Channel                             Type     Formatter  Status    Configuration
-------                             ----     ---------  ------    -------------
/var/log/asterisk/messages          File     default    Enabled    - NOTICE WARNING ERROR SECURITY


on the server, where everything is ok shows:
freepbx*CLI> Logger show channels
Logger queue limit: 1000

Channel                             Type     Formatter  Status    Configuration
-------                             ----     ---------  ------    -------------
/var/log/asterisk/full              File     default    Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE
                                    Console  default    Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Janus74, 2020-09-14
@Janus74

I added to logger_logfiles_additional.conf:

console => debug,error,notice,verbose,warning
full => debug,error,notice,verbose,warning

Made in CLI logger reload
And it all worked

A
Andrey Barbolin, 2020-09-14
@dronmaxman

What command are you using to connect to the console?
sudo asterisk -rvvvvvv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question