![]() |
2010-01-29
, 11:26
|
Posts: 29 |
Thanked: 23 times |
Joined on Jan 2009
@ Macedonia
|
#2
|
![]() |
2010-01-29
, 12:26
|
Posts: 29 |
Thanked: 23 times |
Joined on Jan 2009
@ Macedonia
|
#3
|
sqlite3 -batch /home/user/.rtcom-eventlogger/el.db < triggers.txt
![]() |
2010-01-29
, 12:56
|
Posts: 29 |
Thanked: 23 times |
Joined on Jan 2009
@ Macedonia
|
#5
|
![]() |
2010-01-29
, 20:53
|
Posts: 75 |
Thanked: 78 times |
Joined on Jan 2010
@ Germany
|
#6
|
![]() |
2010-01-29
, 22:24
|
Posts: 29 |
Thanked: 23 times |
Joined on Jan 2009
@ Macedonia
|
#7
|
oh, one remark:what do the triggers do if a outgoing call is not answered? are start_time and end_time the same? or is end_time = 0 because the trigger never triggers? in the first case, my script would still count one minute…
![]() |
2010-02-02
, 22:22
|
Posts: 75 |
Thanked: 78 times |
Joined on Jan 2010
@ Germany
|
#8
|
The Following 4 Users Say Thank You to hcm For This Useful Post: | ||
![]() |
2010-02-06
, 20:22
|
|
Posts: 80 |
Thanked: 37 times |
Joined on Feb 2010
@ Long Island, New York
|
#9
|
![]() |
2010-02-06
, 20:50
|
Posts: 75 |
Thanked: 78 times |
Joined on Jan 2010
@ Germany
|
#10
|
I have copied my ~/.rtcom-eventlogger/el.db from my N900 to my desktop-computer and analyzed it using sqliteman.
I realized that – in the "events"-table – the field "end_time" is always zero for calls. However, it is sometimes non-zero for SMS, which is also confusing me…
So my question: why is the end_time (or duration) of individual calls not logged?
The background is the following: The integrated call-timer only sums up the total time of all calls, while most providers will charge you in a different way. I would like to develop a program or widget which calculates your call-time the same way as your provider does.
Now my idea would be to check the database very often (every few seconds), and if a new call has been added, calculate the difference between the current and previous value of the integrated call-timer => this is the time of the last call.
However, this is quite a dirty hack and requires frequent queries to the database (eventlogger-API), while it would be absolutely logical to log end_times for calls (why is this column available, in the first place…)
Any remarks?
hcm