diff --git a/src/classic/hfp.h b/src/classic/hfp.h index 2dde289e7..70946ca2a 100644 --- a/src/classic/hfp.h +++ b/src/classic/hfp.h @@ -131,7 +131,7 @@ extern "C" { #define HFP_EXTENDED_AUDIO_GATEWAY_ERROR "+CME ERROR" #define HFP_TRIGGER_CODEC_CONNECTION_SETUP "+BCC" #define HFP_CONFIRM_COMMON_CODEC "+BCS" -#define HFP_ANSWER_CALL "A" +#define HFP_ANSWER_CALL "ATA" #define HFP_HANG_UP_CALL "+CHUP" #define HFP_CHANGE_IN_BAND_RING_TONE_SETTING "+BSIR" #define HFP_CALL_PHONE_NUMBER "ATD" diff --git a/src/classic/hfp_hf.c b/src/classic/hfp_hf.c index 55ef11a18..e06d4cd6d 100644 --- a/src/classic/hfp_hf.c +++ b/src/classic/hfp_hf.c @@ -266,6 +266,10 @@ static int hfp_hf_send_dtmf(uint16_t cid, char code){ return send_str_over_rfcomm(cid, buffer); } +static int hfp_hf_cmd_ata(uint16_t cid){ + return send_str_over_rfcomm(cid, "ATA\r\n"); +} + static int hfp_hf_cmd_exchange_supported_features(uint16_t cid){ return hfp_hf_send_cmd_with_int(cid, HFP_SUPPORTED_FEATURES, hfp_supported_features); } @@ -302,10 +306,6 @@ static int hfp_hf_cmd_trigger_codec_connection_setup(uint16_t cid){ return hfp_hf_send_cmd(cid, HFP_TRIGGER_CODEC_CONNECTION_SETUP); } -static int hfp_hf_cmd_ata(uint16_t cid){ - return hfp_hf_send_cmd(cid, HFP_ANSWER_CALL); -} - static int hfp_hf_set_microphone_gain_cmd(uint16_t cid, int gain){ return hfp_hf_send_cmd_with_int(cid, HFP_SET_MICROPHONE_GAIN, gain); }