Rpt log? Where and how?

I’d like to enable basic logging of asterisk rpt activity:
Node connections node keyups (possibly more).
But I’d like to start with those basics.
How do I enable and log these events and where do they go?
This is a hard drive and not an SDCard therefore this is not a concern to that regard.
I also do not want to archive audio.
Only wish to log and record the events.
I already tried configuring asterisk to loglevel 7 and this does not cause it to log these events,
however they can clearly be seen at the asterisk console.

At the asterisk console I see :
– Call accepted by 93.x.x.x:4569 (format ulaw)
– Format for call is (ulaw)
– Hungup ‘DAHDI/pseudo-1951477356’
– Hungup ‘DAHDI/pseudo-1193533009’
– <DAHDI/pseudo-296251747> Playing ‘rpt/node.gsm’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘digits/4.ulaw’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘digits/2.ulaw’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘digits/8.ulaw’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘digits/1.ulaw’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘digits/5.ulaw’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘rpt/connected-to.gsm’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘rpt/node.gsm’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘digits/2.ulaw’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘digits/5.ulaw’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘digits/8.ulaw’ (language ‘en’)
– <DAHDI/pseudo-296251747> Playing ‘digits/6.ulaw’ (language ‘en’)
– Hungup ‘DAHDI/pseudo-296251747’
– Hungup ‘DAHDI/pseudo-2067626128’
I wish to log these types of evens and be able to view them at a later time.

Thanks!

Also looked at logger.conf
It is set to the same as console.
I also tried adding “debug” to the messages.log configuration (then restarting asterisk) and this did not help.
Clearly these events (as seen in the console) are not being logged to messages.log
console => notice,warning,error,dtmf
;console => notice,warning,error,debug,verbose
messages.log => notice,warning,error,dtmf

Add verbose(n) to the messages.log line in logger.conf. Start with verbose(3); the higher the int the more is logged. Restart asterisk after editing logger.conf.

Like this?
messages.log => notice,warning,error,dtmf verbose 7
Or like this?
messages.log => notice,warning,error,dtmf verbose (3)
I tried 3 and 7.
Restarted logger also restarted asterisk.
This did not have any affect on what is showing in the logfile.

You need a comma between each logging element, not a space. No spaces at all in the line.

messages.log => notice,warning,error,dtmf,verbose(3)

Just in the case you forgot, asterisk must be restarted on changes to that file.

Thanks Chuck!
I’m all set now :slight_smile:

You bet!
It’s also possible to just restart logger within asterisk but I was also restarting asterisk just to be sure.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.