diff --git a/src/hfp_hf.c b/src/hfp_hf.c index e1d1a55bb..52a09ffb3 100644 --- a/src/hfp_hf.c +++ b/src/hfp_hf.c @@ -1214,7 +1214,7 @@ void hfp_hf_terminate_call(bd_addr_t bd_addr){ // } } -void hfp_hf_reject_call(bd_addr_t bd_addr){ +void hfp_hf_reject_incoming_call(bd_addr_t bd_addr){ hfp_hf_establish_service_level_connection(bd_addr); hfp_connection_t * connection = get_hfp_connection_context_for_bd_addr(bd_addr); diff --git a/src/hfp_hf.h b/src/hfp_hf.h index a709f0317..a7fefdcff 100644 --- a/src/hfp_hf.h +++ b/src/hfp_hf.h @@ -203,49 +203,50 @@ void hfp_hf_establish_audio_connection(bd_addr_t bd_addr); void hfp_hf_release_audio_connection(bd_addr_t bd_addr); /** - * @brief + * @brief Answer incoming call. * @param bd_addr Bluetooth address of the AG */ void hfp_hf_answer_incoming_call(bd_addr_t bd_addr); /** - * @brief + * @brief Reject incoming call. * @param bd_addr Bluetooth address of the AG */ -void hfp_hf_reject_call(bd_addr_t bd_addr); +void hfp_hf_reject_incoming_call(bd_addr_t bd_addr); /** - * @brief + * @brief Releases all held calls or sets User Determined User Busy (UDUB) for a waiting call. * @param bd_addr Bluetooth address of the AG */ void hfp_hf_user_busy(bd_addr_t addr); /** - * @brief + * @brief Releases all active calls (if any exist) and accepts the other (held or waiting) call. * @param bd_addr Bluetooth address of the AG */ void hfp_hf_end_active_and_accept_other(bd_addr_t addr); /** - * @brief + * @brief Places all active calls (if any exist) on hold and accepts the other (held or waiting) call. * @param bd_addr Bluetooth address of the AG */ void hfp_hf_swap_calls(bd_addr_t addr); /** - * @brief + * @brief Adds a held call to the conversation. * @param bd_addr Bluetooth address of the AG */ void hfp_hf_join_held_call(bd_addr_t addr); /** - * @brief + * @brief Connects the two calls and disconnects the subscriber from both calls (Explicit Call +Transfer). * @param bd_addr Bluetooth address of the AG */ void hfp_hf_connect_calls(bd_addr_t addr); /** - * @brief + * @brief Terminates an incoming or an outgoing call. * @param bd_addr Bluetooth address of the AG */ void hfp_hf_terminate_call(bd_addr_t bd_addr); diff --git a/test/hfp/hfp_hf_client_test.c b/test/hfp/hfp_hf_client_test.c index 56557f2b9..deb06f0ca 100644 --- a/test/hfp/hfp_hf_client_test.c +++ b/test/hfp/hfp_hf_client_test.c @@ -149,8 +149,8 @@ static void user_command(char cmd){ hfp_hf_terminate_call(device_addr); break; case 'G': - printf("Reject call.\n"); - hfp_hf_reject_call(device_addr); + printf("Reject incoming call.\n"); + hfp_hf_reject_incoming_call(device_addr); break; case 'g': printf("Query operator.\n"); diff --git a/test/pts/hfp_hf_test.c b/test/pts/hfp_hf_test.c index 9d4e7b9b6..03f3347d7 100644 --- a/test/pts/hfp_hf_test.c +++ b/test/pts/hfp_hf_test.c @@ -113,7 +113,7 @@ static void show_usage(void){ printf("F - Hangup call\n"); printf("g - query network operator name\n"); - printf("G - reject call\n"); + printf("G - reject incoming call\n"); printf("i - dial 1234567\n"); printf("I - dial 7654321\n"); @@ -252,8 +252,8 @@ static int stdin_process(struct data_source *ds){ break; case 'G': log_info("USER:\'%c\'", cmd); - printf("Reject call.\n"); - hfp_hf_reject_call(device_addr); + printf("Reject incoming call.\n"); + hfp_hf_reject_incoming_call(device_addr); break; case 'g': log_info("USER:\'%c\'", cmd); @@ -537,7 +537,7 @@ int btstack_main(int argc, const char * argv[]){ hfp_hf_init(rfcomm_channel_nr); hfp_hf_set_supported_features(438 | (1<