From b2fe1d3c22c0001baa194d8a37540dcefb374906 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 21 Oct 2008 16:19:05 +0300 Subject: The Coming signal comes in practice before the CallStatus(COMING) signal --- audio/telephony-maemo.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c index 4ccc4886..6619dcb1 100644 --- a/audio/telephony-maemo.c +++ b/audio/telephony-maemo.c @@ -429,12 +429,15 @@ static void handle_incoming_call(DBusMessage *msg) return; } + debug("Incoming call to %s from number %s", call_path, number); + g_free(call->number); call->number = g_strdup(number); - telephony_incoming_call_ind(number, 0); + telephony_update_indicator(maemo_indicators, "callsetup", + EV_CALLSETUP_INCOMING); - debug("Incoming call to %s from number %s", call_path, number); + telephony_incoming_call_ind(number, 0); } static void get_remote_reply(DBusPendingCall *pending_call, @@ -553,8 +556,6 @@ static void handle_call_status(DBusMessage *msg, const char *call_path) EV_CALLSETUP_OUTGOING); break; case CSD_CALL_STATUS_COMING: - telephony_update_indicator(maemo_indicators, "callsetup", - EV_CALLSETUP_INCOMING); call->originating = FALSE; break; case CSD_CALL_STATUS_PROCEEDING: -- cgit