This is an old revision of the document!
Firstly,you need to enable logging function of asterisk.remove the note(semicolon) in front of the “messages ⇒ notice,warning,error” and “full ⇒ notice,warning,error,debug,verbose,dtmf,fax” in the file of /etc/asterisk/logger.conf,as shown below:
Then,you can find serveral files named “full.xxxx” and “messages” under the direction of /var/log/asterisk.You can delete these files if you can ensure that no longer use them.
asterisk -rx "logger reload"
开启asterCC日志,将/etc/asterisk/logger.conf文件中[system]标签下的debug改为一个大于0的整数,例如:debug=2。当等于0时,表示不开启asterCC系统的日志。
开启日志后,在 /opt/asterisk/scripts/astercc 目录下会看到模块对应的 .log日志文件,如:astcc_dialer.log 是指预拨号模块的日志文件。