All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add voice call boolean property for MO/MT distinction
@ 2010-11-24 15:05 =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
  2010-11-24 21:31 ` Denis Kenzior
  0 siblings, 1 reply; 14+ messages in thread
From: =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont @ 2010-11-24 15:05 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]

---
 doc/voicecall-api.txt |    5 +++++
 src/voicecall.c       |    6 +++++-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/doc/voicecall-api.txt b/doc/voicecall-api.txt
index f0ba316..f3cad7c 100644
--- a/doc/voicecall-api.txt
+++ b/doc/voicecall-api.txt
@@ -87,6 +87,11 @@ Properties	string LineIdentification [readonly]
 			"override category" option was not provisioned for
 			the current subscriber.
 
+		boolean Originated [readonly]
+
+			Indicates whether the call was mobile-originated
+			(true) or mobile-terminated (false).
+
 		boolean Multiparty [readonly]
 
 			Contains the indication if the voice call is part
diff --git a/src/voicecall.c b/src/voicecall.c
index 52baec3..045b492 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -322,7 +322,7 @@ static void append_voicecall_properties(struct voicecall *v,
 	const char *status;
 	const char *callerid;
 	const char *timestr;
-	ofono_bool_t mpty;
+	ofono_bool_t mpty, originated;
 
 	status = call_status_to_string(call->status);
 	callerid = phone_number_to_string(&call->phone_number);
@@ -342,6 +342,10 @@ static void append_voicecall_properties(struct voicecall *v,
 					&timestr);
 	}
 
+	originated = call->direction == CALL_DIRECTION_MOBILE_ORIGINATED;
+	ofono_dbus_dict_append(dict, "Originated", DBUS_TYPE_BOOLEAN,
+				&originated);
+
 	if (g_slist_find_custom(v->vc->multiparty_list,
 				GINT_TO_POINTER(call->id),
 				call_compare_by_id))
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread
* Re: [PATCH] Add voice call boolean property for MO/MT distinction
@ 2010-11-30  8:20 Remi.Denis-Courmont
  2010-11-30 10:58 ` Marcel Holtmann
  0 siblings, 1 reply; 14+ messages in thread
From: Remi.Denis-Courmont @ 2010-11-30  8:20 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1671 bytes --]

----- Message d'origine -----
> > * AT+CPBR and friends is hooked to the phonebook, which is Qt-based,
> and
> > therefore inadequate inside oFono.
>
> I am not buying into the AT+CPBR for the local and user specific
> phonebook. That one is inside Tracker anyway and also inside the user
> session. Trying to really support this is a broken idea. CPBR can not
> expose the information of modern contacts storage anyway, so just don't
> bother.

I can see how AT+CPBW could be problematic, more so than AT+CPBR. But that is not relevant. If a big enough customer wants it badly enough, it has to be done. I do not want to end up with an architecture that forbids satisfying some of my employer's potential major customers. 

> If you really care about it then use Bluetooth PBAP via obexd which we
> have enabled already.

> > * At Nokia, we also have some non-standard commands for internal use.
> > * Some operators require some funky AT commands of their own. It might
> not be
> > possible to open-source them, even if we want to.
>
> And these should be on an engineering mode only USB CDC ACM interface
> with a different backend anyway.

I already mentioned that the same software must run in certification and in user's hands for "whole device" certification to be valid. But anyway, some of those commands were requested as DUN extensions, not as testing stuff. So no no no.

> Only because someone wants to shoehorn this into something nasty,
> doesn't mean we should do it. And I am not going to scarifies the
> simplicity of the oFono D-Bus API for this.

We are talking about the Originated boolean call property?!

-- 
Rémi

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [PATCH] Add voice call boolean property for MO/MT distinction
@ 2010-11-30 11:17 Remi.Denis-Courmont
  0 siblings, 0 replies; 14+ messages in thread
From: Remi.Denis-Courmont @ 2010-11-30 11:17 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1230 bytes --]

----- Message d'origine -----
> do me a favor and try not to break the threading next time.

When I am away from my laptop, I use whatever MUA I can. This is obviously not deliberate a choice.

> I am getting a bit sick of this secrecy. oFono is for all intense and
> purposes open source.

And I am sick of arguing for something as simple and obvious as exposing the call direction in the calls list.

> So if you want a proper discussion here then
> please list the AT command in question.

Operator requirements are typically confidential. Since they are copyighted by their originator, not by me or my employer, I cannot fix that. Or rather, I can try (it is ongoing) but I cannot promise anything.

But this is only a side issue. We have a working AT commands DCE implementation that supports both cellular/oFono stuff and all the other that we need. Open-sourcing as much as we can is an ongoing process. I am not interested in rewriting that (and the BlueZ HFP code) into oFono just for the heck of it.

Furthermore providing some useful features (like call direction) only via a would-be oFono AT commands but not via the _preferred_ D-Bus interface seems silly and counter-productive to me.

-- 
Rémi

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-12-01 23:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-24 15:05 [PATCH] Add voice call boolean property for MO/MT distinction =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2010-11-24 21:31 ` Denis Kenzior
2010-11-25  7:40   ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2010-11-25  8:23     ` Johan Hedberg
2010-11-25 23:51       ` Denis Kenzior
2010-11-26  8:21         ` Johan Hedberg
2010-11-26 12:06       ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2010-11-29  9:41         ` Marcel Holtmann
2010-12-01 23:57           ` Pekka Pessi
  -- strict thread matches above, loose matches on Subject: below --
2010-11-30  8:20 Remi.Denis-Courmont
2010-11-30 10:58 ` Marcel Holtmann
2010-11-30 11:24   ` Aki Niemi
2010-11-30 11:39     ` Marcel Holtmann
2010-11-30 11:17 Remi.Denis-Courmont

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.