OSDN Git Service

telephony-ofono: fix not setting originating when status property changes
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Wed, 5 Jan 2011 15:59:40 +0000 (17:59 +0200)
committerJohan Hedberg <johan.hedberg@nokia.com>
Thu, 6 Jan 2011 22:35:38 +0000 (00:35 +0200)
audio/telephony-ofono.c

index 4f69673..720b32d 100644 (file)
@@ -834,6 +834,7 @@ static gboolean handle_vc_property_changed(DBusConnection *conn,
                                        "callsetup", EV_CALLSETUP_ALERTING);
                        vc->status = CALL_STATUS_ALERTING;
                        DBG("vc status is CALL_STATUS_ALERTING");
+                       vc->originating = TRUE;
                } else if (g_str_equal(state, "incoming")) {
                        /* state change from waiting to incoming */
                        telephony_update_indicator(ofono_indicators,
@@ -842,6 +843,7 @@ static gboolean handle_vc_property_changed(DBusConnection *conn,
                                                NUMBER_TYPE_TELEPHONY);
                        vc->status = CALL_STATUS_INCOMING;
                        DBG("vc status is CALL_STATUS_INCOMING");
+                       vc->originating = FALSE;
                }
        }