Hi Slawomir, On Thu, Jun 2, 2011 at 4:23 PM, Slawomir Bochenski <lkslawek@xxxxxxxxx> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html