linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rafal Michalski <rafal.michalski@comarch.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH] Fixed problem with incoming calls query
Date: Tue, 20 Jul 2010 14:04:35 +0300	[thread overview]
Message-ID: <1279623875-9870-1-git-send-email-rafal.michalski@comarch.com> (raw)

From: Rafal Michalski <rafal.michalski@comarch.com>

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.
---
 plugins/phonebook-tracker.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index 89c612e..98b6410 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -125,6 +125,7 @@
 		"?call a nmo:Call ; "					\
 		"nmo:from ?c ; "					\
 		"nmo:isSent false . "					\
+		"nmo:isAnswered true ."                                 \
 		"?c a nco:Contact . "					\
 	"OPTIONAL { ?c nco:hasPhoneNumber ?h . } "			\
 	"OPTIONAL { ?c nco:hasEmailAddress ?e . } "			\
@@ -144,6 +145,7 @@
 		"?call a nmo:Call ; "					\
 		"nmo:from ?c ; "					\
 		"nmo:isSent false . "					\
+		"nmo:isAnswered true ."                                 \
 		"?c a nco:Contact . "					\
 	"OPTIONAL { ?c nco:hasPhoneNumber ?h . } "			\
 	"} ORDER BY DESC(nmo:receivedDate(?call))"
-- 
1.6.3.3


             reply	other threads:[~2010-07-20 11:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-20 11:04 Rafal Michalski [this message]
2010-07-20 11:25 ` [PATCH] Fixed problem with incoming calls query Luiz Augusto von Dentz
  -- strict thread matches above, loose matches on Subject: below --
2010-07-20 12:30 Radoslaw Jablonski
2010-07-20 12:35 ` Hedberg Johan (Nokia-D/Helsinki)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1279623875-9870-1-git-send-email-rafal.michalski@comarch.com \
    --to=rafal.michalski@comarch.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).