Asterisk Logging


#1

Here’s some sample output on an Asterisk console with ‘debug level 9’…

Nov 10 07:52:08 NOTICE[12535]: rtp.c:506 ast_rtp_read: Unknown RTP codec 96 received
Nov 10 07:52:13 NOTICE[12535]: rtp.c:506 ast_rtp_read: Unknown RTP codec 96 received
– Playing ‘beep’ (language ‘en’)
Urgent handler
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/vm_www/3250072/INBOX/msg0000 format: wav49, 0x9a309b8
– x=1, open writing: /var/spool/asterisk/voicemail/vm_www/3250072/INBOX/msg0000 format: gsm, 0x99f92b8
– x=2, open writing: /var/spool/asterisk/voicemail/vm_www/3250072/INBOX/msg0000 format: wav, 0x9a401c8
Urgent handler
Nov 10 07:52:18 NOTICE[12535]: rtp.c:506 ast_rtp_read: Unknown RTP codec 96 received
– User hung up
Urgent handler
Nov 10 07:52:23 NOTICE[12535]: rtp.c:506 ast_rtp_read: Unknown RTP codec 96 received
– Executing Dial(“SIP/2001-01b2”, “SIP/3250072|30|tr”) in new stack
Urgent handler
Urgent handler
– Called 3250072
Urgent handler
– SIP/3250072-fb37 is ringing
Urgent handler

The output seems a bit haphazzard. Some of the entries have date/time prefixes and some don’t. I don’t know what the use of displaying ‘Urgent handler’ all the time is. This seems to be the only extra piece of info when debug is set to 9, over the default.

Is there a way to get Asterisk to log EVERYTHING to /var/log/something? The output in /var/log/asterisk/messages (even with debug level 9 again) are pretty minimal.


#2

I think I found my own answer.

Set

messages => notice,warning,error,debug,verbose

in logger.conf