IP Asterisk , . : / , , . , ( ) Asterisk , . , , , .


. , /etc/asterisk/logger.conf. :

[root@asterisk ~]# cat  /etc/asterisk/logger.conf
[general]
#include logger_general_additional.conf
#include logger_general_custom.conf

[logfiles]
#include logger_logfiles_additional.conf
#include logger_logfiles_custom.conf
   Asterisk?

, logger_logfiles_custom.conf . . , logs_20170723 . , :

[root@asterisk ~]# vim logger_logfiles_custom.conf
 logs_20170723 => notice,warning,error,debug,verbose,dtmf

:x!.

13 Asterisk, . logger add channel . :
logger add channel logs_20170723  notice,warning,error,debug,verbose,dtmf
Asterisk.

Asterisk verbose debug. , , . 1 10, 10 :

asterisk*CLI> core set verbose 3
asterisk*CLI> core set debug 3

, :

asterisk*CLI> module reload logger

Asterisk . , SIP , IAX . :

SIP ( 1.6) sip set debug on
SIP ( 1.4) sip set debug
PJSIP pjsip set logger on
CDR cdr set debug on
IAX2 ( 1.6) iax2 set debug on
IAX2 ( 1.4) iax2 set debug

, . :

asterisk*CLI> core set verbose 0
asterisk*CLI> core set debug 0

, :

asterisk*CLI> sip set debug on
asterisk*CLI> iax2 set debug off

, /etc/asterisk/logger.conf . :

asterisk*CLI> module reload logger

Asterisk

. , . :

[root@asterisk ~]# touch /home/asterisk_cli.txt

, IP Asterisk :

[root@asterisk ~]# asterisk -rvvvv | tee /home/asterisk_cli.txt

, , sip set debug on. . sip set debug off quit.


Asterisk Wireshark

tcpdump. :

[root@asterisk ~]# tcpdump -s 0 -w /home/dump.cap

, , dump.cap /home , . , , -i eth0 - , , port 5060 - , .


?

 .

P.S. , :)

"",