From c090e55228d48e4c78869d71dda5ebff4511c68d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 21 Mar 2022 22:29:56 +0100 Subject: [PATCH] hfp_hf: emit HFP_SUBEVENT_TRANSMIT_DTMF_CODES after sending DTMF command --- CHANGELOG.md | 3 ++- src/classic/hfp_hf.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c80dffa1..4d2c133ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - GAP: support periodic advertising with ENABLE_LE_PERIODIC_ADVERTISING - HFP HF: provide Calling Line Identification alpha field - +- HFP HF: emit HFP_SUBEVENT_TRANSMIT_DTMF_CODES after sending DTMF command + ### Fixed - HFP AG: activate all AG indicators upon service level connection establishment diff --git a/src/classic/hfp_hf.c b/src/classic/hfp_hf.c index 0f351a799..130ff9ef5 100644 --- a/src/classic/hfp_hf.c +++ b/src/classic/hfp_hf.c @@ -968,6 +968,11 @@ static void hfp_hf_run_for_context(hfp_connection_t * hfp_connection){ hfp_connection->hf_send_dtmf_code = 0; hfp_connection->ok_pending = 1; hfp_hf_send_dtmf(hfp_connection->rfcomm_cid, code); + // notify client that dtmf was sent + char buffer[2]; + buffer[0] = code; + buffer[1] = 0; + hfp_emit_string_event(hfp_connection, HFP_SUBEVENT_TRANSMIT_DTMF_CODES, buffer); return; }