From c0fa965c75ba19aa357fb42ef2f9a8071cc79d65 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 14 Mar 2025 10:39:24 +0100 Subject: [PATCH] hfp_hf: restore call status on slc established --- src/classic/hfp_hf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/classic/hfp_hf.c b/src/classic/hfp_hf.c index 2fb835752..d4edcf777 100644 --- a/src/classic/hfp_hf.c +++ b/src/classic/hfp_hf.c @@ -55,6 +55,9 @@ #include "classic/hfp_hf.h" #include "classic/sdp_util.h" +// prototypes +static void hfp_hf_handle_transfer_ag_indicator_status(hfp_connection_t * hfp_connection); + // const static const char hfp_hf_default_service_name[] = "Hands-Free unit"; @@ -1178,6 +1181,9 @@ static void hfp_hf_slc_established(hfp_connection_t * hfp_connection){ hfp_connection->microphone_gain = hfp_hf_microphone_gain; hfp_connection->send_microphone_gain = 1; hfp_emit_event(hfp_connection, HFP_SUBEVENT_MICROPHONE_VOLUME, hfp_hf_microphone_gain); + + // restore call status + hfp_hf_handle_transfer_ag_indicator_status(hfp_connection); } static void hfp_hf_handle_suggested_codec(hfp_connection_t * hfp_connection){