From 2d07c58eadf37116afcd57a457f7cd2a8c37687e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 26 Nov 2015 18:26:05 +0100 Subject: [PATCH] hfp: fix HF response and hold commands --- src/hfp_ag.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hfp_ag.c b/src/hfp_ag.c index 11de245f2..989685709 100644 --- a/src/hfp_ag.c +++ b/src/hfp_ag.c @@ -1151,15 +1151,16 @@ static void hfp_ag_call_sm(hfp_ag_call_event_t event, hfp_connection_t * connect break; case HFP_AG_RESPONSE_AND_HOLD_ACCEPT_HELD_CALL_BY_AG: - case HFP_AG_RESPONSE_AND_HOLD_REJECT_HELD_CALL_BY_HF: + case HFP_AG_RESPONSE_AND_HOLD_ACCEPT_HELD_CALL_BY_HF: if (!hfp_ag_response_and_hold_active) break; if (hfp_ag_response_and_hold_state != HFP_RESPONSE_AND_HOLD_INCOMING_ON_HOLD) break; hfp_ag_response_and_hold_state = HFP_RESPONSE_AND_HOLD_HELD_INCOMING_ACCEPTED; hfp_ag_send_response_and_hold_state(); + printf("Held Call accepted and active\n"); break; case HFP_AG_RESPONSE_AND_HOLD_REJECT_HELD_CALL_BY_AG: - case HFP_AG_RESPONSE_AND_HOLD_ACCEPT_HELD_CALL_BY_HF: + case HFP_AG_RESPONSE_AND_HOLD_REJECT_HELD_CALL_BY_HF: if (!hfp_ag_response_and_hold_active) break; if (hfp_ag_response_and_hold_state != HFP_RESPONSE_AND_HOLD_INCOMING_ON_HOLD) break; hfp_ag_response_and_hold_state = HFP_RESPONSE_AND_HOLD_HELD_INCOMING_REJECTED;