Skip to contentSkip to conversation

voicecall: Fix emulator AT+CHUP for HFP

PATCH In review Frédéric Danis 2 participants 2 messages Feb 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 voicecall: Fix emulator AT+CHUP for HFP

AT+CHUP should be able to hang-up active or incoming calls

---
 src/voicecall.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
src/voicecall.c +2 -1
index 094f41d..e224d3a 100644
@@ -2931,7 +2931,8 @@ static void emulator_chup_cb(struct ofono_emulator *em,
 			goto done;
 		}
 
-		if (voicecalls_have_active(vc) == FALSE)
+		if (voicecalls_have_active(vc) == FALSE &&
+				voicecalls_have_incoming(vc) == FALSE)
 			goto fail;
 
 		vc->pending_em = em;
Signature · 1 line
1.7.1
#1 lore raw

Hi Frédéric,

Quoted 5 lines · Frédéric Danis

AT+CHUP should be able to hang-up active or incoming calls

---
 src/voicecall.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis