AT+CHUP should be able to hang-up active or incoming calls
---
 src/voicecall.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/voicecall.c b/src/voicecall.c
index 094f41d..e224d3a 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -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;
-- 
1.7.1

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to