---
 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 4f38e6a..682b46b 100644
--- a/doc/voicecall-api.txt
+++ b/doc/voicecall-api.txt
@@ -92,6 +92,11 @@ Properties   string LineIdentification [readonly]
                        Contains the Name Identification information returned
                        by the network, if present.
 
+               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 97fc36b..2baf2d6 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -352,7 +352,7 @@ static void append_voicecall_properties(struct voicecall *v,
        const char *callerid;
        const char *timestr;
        const char *name;
-       ofono_bool_t mpty;
+       ofono_bool_t mpty, originated;
        dbus_bool_t emergency_call;
 
        status = call_status_to_string(call->status);
@@ -382,6 +382,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

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to