[Asterisk-Dev] Missing in action: call timer stats?
John Todd
jtodd at loligo.com
Sun Jul 11 14:46:27 MST 2004
At 4:22 PM -0500 on 7/11/04, Tilghman Lesher wrote:
>On Sunday 11 July 2004 15:29, John Todd wrote:
>> In the "show channel" output of a particular channel, there is no
>> indication on how long that particular channel has existed (in
>> seconds.) Am I just missing something here, or does this value not
>> make itself visible anywhere? There is an unchanging value called
>> "Time to Hangup", but it doesn't seem to have much bearing on
>> reality.
>>
>> So, this leaves two items for discussion:
>>
>> 1) Does a counter of "channel existence" seconds seem like a good
>> value to request as a feature addition in the "show channel"
>> summary?
>
>Sure; you could probably pull it out of the CDR structure
>(chan->cdr->start.tv_sec).
>
>> 2) Is the unchanging nature of "Time to Hangup" a bug, or can
>> someone describe more fully what this is supposed to indicate?
>
>It's the AbsoluteTimeout value. Internally, its value is the exact
>unixtime at which the AbsoluteTimeout should be considered to be
>expired (and thus trigger a hangup).
>
>--
>Tilghman
OK, I'll put #1 in as a feature request. I'd say that there perhaps
were both CDR time counters available in the report - the epoch
timestamp that the channel was created (ast_chan_alloc?) and then the
epoch timestamp when the call was answered (or bridged? I don't know
exactly what the internal data structure in the CDR looks like in the
code.)
On #2: OK, I understand. I was looking at it as a descending timer
(in ms or something) since I had my AbsoluteTimeout set very very
high on the test call that I was looking at, though I should have
recognized it as UNIX seconds. "real time" termination marker makes
sense.
JT
More information about the asterisk-dev
mailing list