In HFP, AT+CHUP is intended to release the current active call.
---
 drivers/hfpmodem/voicecall.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 6693280..17811d6 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -393,8 +393,8 @@ static void hfp_answer(struct ofono_voicecall *vc,
 static void hfp_hangup(struct ofono_voicecall *vc,
                        ofono_voicecall_cb_t cb, void *data)
 {
-       /* Hangup all calls */
-       hfp_template("AT+CHUP", vc, generic_cb, 0x3f, cb, data);
+       /* Hangup current active call */
+       hfp_template("AT+CHUP", vc, generic_cb, 0x1, cb, data);
 }
 
 static void hfp_hold_all_active(struct ofono_voicecall *vc,
-- 
1.6.5.2

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

Reply via email to