From b60762e026734c9fad25ccb12e4fef72f662ed81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Fri, 22 Apr 2011 17:44:02 +0200 Subject: [PATCH] voicecall: fix waiting calls for HFP emulator Fix precedence between waiting and dialing so HFP emulator is notified of dialing/alerting even in case of a waiting call pending. --- src/voicecall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/voicecall.c b/src/voicecall.c index 69b0d3b..3e66004 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -770,12 +770,14 @@ static void notify_emulator_call_status(struct ofono_voicecall *vc) emulator_call_status_cb, GINT_TO_POINTER(status)); - if (incoming || waiting) + if (incoming) status = OFONO_EMULATOR_CALLSETUP_INCOMING; else if (dialing) status = OFONO_EMULATOR_CALLSETUP_OUTGOING; else if (alerting) status = OFONO_EMULATOR_CALLSETUP_ALERTING; + else if (waiting) + status = OFONO_EMULATOR_CALLSETUP_INCOMING; else status = OFONO_EMULATOR_CALLSETUP_INACTIVE; -- 2.7.4