From 5eff374c75393673701cc7fb71c7cb6dd3b65f74 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Tue, 24 May 2022 14:38:11 +0200 Subject: [PATCH] example/hfp_ag_demo: add commands for initiating and establishing outgoing call --- example/hfp_ag_demo.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/example/hfp_ag_demo.c b/example/hfp_ag_demo.c index 8a4e238b8..25ef987c5 100644 --- a/example/hfp_ag_demo.c +++ b/example/hfp_ag_demo.c @@ -158,6 +158,7 @@ static void show_usage(void){ printf("b - establish AUDIO connection | B - release AUDIO connection\n"); printf("c - simulate incoming call from 1234567 | C - simulate call from 1234567 dropped\n"); + printf("P - simulate outgoing call from 1234567 | R - establish outgoing call\n"); printf("d - report AG failure\n"); printf("D - delete all link keys\n"); printf("e - answer call on AG | E - terminate call on AG\n"); @@ -219,6 +220,17 @@ static void stdin_process(char cmd){ hfp_ag_set_clip(129, "1234567"); hfp_ag_incoming_call(); break; + case '5': + log_info("USER:\'%c\'", cmd); + printf("Initiate outgoing call from 1234567\n"); + hfp_ag_set_clip(129, "1234567"); + hfp_ag_outgoing_call_initiated(); + break; + case '6': + log_info("USER:\'%c\'", cmd); + printf("Establish outgoing call\n"); + hfp_ag_outgoing_call_established(); + break; case 'D': printf("Deleting all link keys\n"); gap_delete_all_link_keys();