On Monday 31 October 2005 09:30, tmassey@obscorp.com wrote:> 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?Of course it's possible, but you'll be maintaining the patch yourself. :-) Why not just enable logging and watch the logfile? You'll get full timestamps there with each line. -A.
On Mon, Oct 31, 2005 at 09:30:58AM -0500, tmassey@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@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend
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? Thank you very much! Tim Massey -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051031/35815245/attachment.htm
You could always just add some exten = NUM,PRIO,VERBOSE(LEVEL|${DATETIME} -- THIS EVENT HAPPENED) type commands in your dialplan to force output of the date time, and you can even reduce the amount of verbosity to the CLI by using it liberally to signify events, so you don't have to watch EVERYTHING. Sherwod _____ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of tmassey@obscorp.com Sent: Monday, October 31, 2005 9:31 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Timestamps in Console? 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? Thank you very much! Tim Massey -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051031/0c71e54a/attachment.htm
There is the -T option when running the CLI but I think it only works in 1.2 Regards Jorge El Lun 31 Oct 2005 12:30, tmassey@obscorp.com escribi?:> 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? > > Thank you very much! > > Tim Massey
On 10/31/05, tmassey@obscorp.com <tmassey@obscorp.com> wrote:> > 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? >I must say its something I would really like to see on the console too! Mike