From ddc034fc97d34071fee4d867299da525d0dd68e5 Mon Sep 17 00:00:00 2001 From: Radoslaw Jablonski Date: Tue, 20 Jul 2010 15:30:30 +0300 Subject: [PATCH] obexd: Fix problem with incoming calls query After making some incoming, outgoing, missed calls, history lists of them (ich, och, mch) are stored on device. In current implementation queries towards tracker for incoming calls include also missed calls. So list for incoming calls displayed on paired BT headset/carkit screen (e.g. BH-903, CK-200) also contains numbers from missed calls list. To block adding missed calls list numbers to incoming calls there should be added info that incoming call is in fact only answered call. So macros additionally include info: "nmo:isAnswered true ." Without this, missed calls was treated as incoming calls. --- obexd/plugins/phonebook-tracker.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index 89c612ed6..ee072d31c 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -124,7 +124,8 @@ "WHERE { " \ "?call a nmo:Call ; " \ "nmo:from ?c ; " \ - "nmo:isSent false . " \ + "nmo:isSent false ; " \ + "nmo:isAnswered true ." \ "?c a nco:Contact . " \ "OPTIONAL { ?c nco:hasPhoneNumber ?h . } " \ "OPTIONAL { ?c nco:hasEmailAddress ?e . } " \ @@ -143,7 +144,8 @@ "WHERE { " \ "?call a nmo:Call ; " \ "nmo:from ?c ; " \ - "nmo:isSent false . " \ + "nmo:isSent false ; " \ + "nmo:isAnswered true ." \ "?c a nco:Contact . " \ "OPTIONAL { ?c nco:hasPhoneNumber ?h . } " \ "} ORDER BY DESC(nmo:receivedDate(?call))" -- 2.47.3