Thread (1 message) 1 message, 1 author, 2011-06-03

Re: [PATCH 3/5] Simplify counting new missed calls

From: Dmitriy Paliy <hidden>
Date: 2011-06-03 08:07:50

Hi Slawomir,

On Thu, Jun 2, 2011 at 4:23 PM, Slawomir Bochenski [off-list ref] wrote:
This replaces parsing missed calls listing that was used to get the
number of missed calls that have been unread with a simple SPARQL query.

Previous code was trying to deal with misbehaviour of other tools
operating on call history entries but still was failing in some
cases. Those other tools should be fixed instead of doing workarounds in
obexd code.
[snip]
+#define NEW_MISSED_CALLS_COUNT_QUERY                                   \
+       "SELECT COUNT(?call) WHERE {"                                   \
+               "?c a nco:Contact ;"                                    \
+               "nco:hasPhoneNumber ?h ."                               \
+               "?call a nmo:Call ;"                                    \
+               "nmo:isSent false ;"                                    \
+               "nmo:from ?c ;"                                         \
+               "nmo:isAnswered false ;"                                \
+               "nmo:isRead false ."                                    \
+       "}"
This query look like to return total number of missed calls that have
not been read. Is it?
If it is due to misbehavior of other tools, then wouldn't it be better
to fix firstly that misbehavior?

BR,
Dmitriy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help