Skip to content

Call Counters (2nd)

Andras Domokos ofono 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5history: expand history API include fileinclude/history.h+3 -00 replies
2/5history: expand history APIsrc/history.c src/ofono.h+28 -00 replies
3/5voicecall: take into use the new history functionsrc/voicecall.c+3 -00 replies
4/5plugins: add call countersMakefile.am plugins/callcounters.c+391 -00 replies
5/5doc: call counters API docdoc/callcounters-api.txt+18 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Call Counters (2nd)

Here a proposal for call counters implementation for keeping track of the total incoming and outgoing call duration counters. Each established call instance is contributing to either of the call duration counters. The 2 counters are updated periodically when there is an established call and the information is stored in a file. The bookkeeping of the call duration counters are per IMSI number.
The implementation makes use of the history framework which had to be expanded with a function for marking the beginning of a voice call. There is a D-Bus interface to call counters for reading and clearing the counters.

Andras Domokos (5):
history: expand history API include file
history: expand history API
voicecall: take into use the new history function
plugins: add call counters
doc: call counters API doc

 Makefile.am              |    3 +
 doc/callcounters-api.txt |   18 ++
 include/history.h        |    3 +
 plugins/callcounters.c   |  388 ++++++++++++++++++++++++++++++++++++++++++++++
 src/history.c            |   24 +++
 src/ofono.h              |    4 +
 src/voicecall.c          |    3 +
 7 files changed, 443 insertions(+), 0 deletions(-)
 create mode 100644 doc/callcounters-api.txt
 create mode 100644 plugins/callcounters.c