[Asterisk-Users] Timestamps in Console?

Tzafrir Cohen tzafrir at cohens.org.il
Mon Oct 31 07:03:43 MST 2005


On Mon, Oct 31, 2005 at 09:30:58AM -0500, tmassey at obscorp.com wrote:
> Hello!
> 
> Lately, I've been keeping a close eye on an Asterisk box by staying logged 
> into the console for long periods of time.  However, it can be very 
> difficult to know how long a telephone call lasts when this is all you 
> see:
> 
>    -- Executing Dial("SIP/SIP105-8e34", "Zap/g2/<Number>|60|t") in new 
> stack
>     -- Called g2/<Number>
>     -- Zap/5-1 answered SIP/SIP105-8e34
>     -- Hungup 'Zap/5-1'
> 
> Did that telephone call last only a few seconds because there was a 
> problem, or a few minutes because there wasn't?  It's impossible to tell.
> 
> Is there a way to add timestamps to each line in the console so you know 
> exactly how long a call took?  Or is there another way of telling directly 
> within the console?

  tail -f /var/log/asterisk/messages

I figure you should play a bit with the settings in logger.conf to
create a log file that'll contain exactly what you want.

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend



More information about the asterisk-users mailing list