Skip to contentSkip to conversation

voicecall: fix waiting calls for HFP emulator

PATCH In review Frédéric Danis 2 participants 2 messages Apr 22, 2011 – Apr 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 files changed, 3 insertions(+), 1 deletions(-)
src/voicecall.c +3 -1
index 7aa0b7e..dcc358e 100644
@@ -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;
 
Signature · 1 line
1.7.1
#1 lore raw

Hi Frédéric,

Quoted 6 lines · Frédéric Danis

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 files changed, 3 insertions(+), 1 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis