[Asterisk-Dev] CDRs with ms and not just seconds

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Feb 8 09:32:59 MST 2005


On Tuesday 08 February 2005 05:45, Kai Militzer wrote:
> Hello list!
>
> I'm hope it's OK to put this on the -dev list as it seems to be more
> a development topic then a user question.
>
> My question is, if it would be possible to let asterisk create CDRs
> with start-/stop-times and call(/billing) durations in ms rather than
> in seconds.
>
> In my opionion it would make great differences in billing. A glitch
> of a few mili-seconds at hangup of a call, may result in a difference
> of one full second between my * CDRs and those of my telco.
>
> I guess for realising billing in ms, there need to be some major
> changes done in the way * handels the CDR creation?!?

Actually, the structures are there to make it even more fine-grained.
CDR uses struct timeval to store the start, answer, and hangup times,
which means that you get seconds and microseconds.  Adjust as
necessary to get whatever scale of time you need.

-- 
Tilghman



More information about the asterisk-dev mailing list