<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I use this tiny awk script:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[<EM>hostname</EM>]$ more
cdate<BR>#!/bin/sh<BR>echo $1 | /bin/awk '{ print strftime("%m/%d/%Y
%H:%M:%S",$1), $2, $3, $4, $5, $6}'<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>and I call it with "cdate
<EM>epochtime</EM>"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=gary.d.brinkman.jr@census.gov
href="mailto:gary.d.brinkman.jr@census.gov">gary.d.brinkman.jr@census.gov</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=tim.reimers@asheville.k12.nc.us
href="mailto:tim.reimers@asheville.k12.nc.us">Tim Reimers</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
title=cisco-voip-bounces@puck.nether.net
href="mailto:cisco-voip-bounces@puck.nether.net">cisco-voip-bounces@puck.nether.net</A>
; <A title=cisco-voip@puck.nether.net
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, December 01, 2005 5:16
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [cisco-voip] CDR
question..</DIV>
<DIV><BR></DIV>Not sure about 4.0 but on 3.3 you can run this query against
the CDR<BR>database and get what you need. Just change the
originalCalledPartyNumber<BR>to the number you need. And while
1128142800 is equivalent to 10/1/2005<BR>12:00 AM EST you may need to
get a Epoch time converter to get a
different<BR>time.<BR><BR><BR>SELECT
duration<BR>FROM
CallDetailRecord<BR>WHERE (dateTimeOrigination >
'1128142800') and<BR>(originalCalledPartyNumber like
'%8005551212')<BR><BR>-----<BR><BR>Gary D. Brinkman<BR>U.S. Census
Bureau<BR>Telecommunications
Office<BR><BR><BR><BR>
<BR>
"Tim
Reimers"
<BR>
<<A
href="mailto:tim.reimers@ashe">tim.reimers@ashe</A>
<BR>
ville.k12.nc.us>
To
<BR>
Sent
by:
<<A
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</A>>
<BR>
cisco-voip-bounce
cc
<BR>
<A
href="mailto:s@puck.nether.net">s@puck.nether.net</A>
<BR>
Subject
<BR>
[cisco-voip] CDR question..
<BR>
11/30/05 11:26
AM
<BR>
<BR>
<BR>
<BR>
<BR>
<BR><BR><BR><BR><BR>Hi everyone---<BR><BR>I have a CDR newbie kind of
question---<BR><BR>Can someone give me the steps needed to determine the
following: (CCM 4.0)<BR><BR>All calls to a given 800 number in say, the
last two months…<BR><BR>Number of calls<BR>Duration of each call<BR><BR>If I
can get it into Excel I can munge around the data to get the right<BR>things I
want in terms of averages, etc…<BR><BR>But I’ve not done any CDR stuff as
yet..<BR> _______________________________________________<BR>cisco-voip
mailing list<BR><A
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</A><BR><A
href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</A><BR><BR>_______________________________________________<BR>cisco-voip
mailing list<BR><A
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</A><BR><A
href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</A><BR></BLOCKQUOTE></BODY></HTML>