summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@linux.intel.com>2011-04-22 17:44:02 +0200
committerDenis Kenzior <denkenz@gmail.com>2011-04-26 14:43:42 -0500
commitb60762e026734c9fad25ccb12e4fef72f662ed81 (patch)
tree7c81a6baeba168e77154ea6d1cb824e3c1af8430 /src/voicecall.c
parentf8eb178b296c58f555b8a347b22b17319fc44051 (diff)
downloadofono-b60762e026734c9fad25ccb12e4fef72f662ed81.tar.bz2
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.
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 69b0d3b1..3e660049 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;