From 4ac00ef135c10fd083a59048729c2c0865815909 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 26 Nov 2015 20:59:02 +0100 Subject: [PATCH] hfp: send HFP_RESPONSE_AND_HOLD_HELD_INCOMING_REJECTED on dropped call --- src/hfp_ag.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hfp_ag.c b/src/hfp_ag.c index 989685709..cdd8e7771 100644 --- a/src/hfp_ag.c +++ b/src/hfp_ag.c @@ -1245,6 +1245,10 @@ static void hfp_ag_call_sm(hfp_ag_call_event_t event, hfp_connection_t * connect hfp_ag_transfer_callsetup_state(); break; case HFP_CALL_STATUS_ACTIVE_OR_HELD_CALL_IS_PRESENT: + if (hfp_ag_response_and_hold_active) { + hfp_ag_response_and_hold_state = HFP_RESPONSE_AND_HOLD_HELD_INCOMING_REJECTED; + hfp_ag_send_response_and_hold_state(); + } hfp_ag_set_callsetup_state(HFP_CALLSETUP_STATUS_NO_CALL_SETUP_IN_PROGRESS); hfp_ag_set_call_state(HFP_CALL_STATUS_NO_HELD_OR_ACTIVE_CALLS); hfp_ag_trigger_terminate_call();