mirror of git://git.sysmocom.de/ofono
voicecall: Fix emulator AT+CHUP for HFP
AT+CHUP should be able to hang-up active or incoming calls
This commit is contained in:
parent
d5bdd1f741
commit
a035f8b0e2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue