From 8e2c4742db0e6da3a6aac63e7f5d2e6a9afda5e6 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sun, 23 Oct 2016 12:18:48 +0200 Subject: remap 'a' to answer incoming call --- modules/auloop/auloop.c | 4 ++-- modules/menu/menu.c | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/auloop/auloop.c b/modules/auloop/auloop.c index 1a830ce..f50d1de 100644 --- a/modules/auloop/auloop.c +++ b/modules/auloop/auloop.c @@ -361,8 +361,8 @@ static int auloop_stop(struct re_printf *pf, void *arg) static const struct cmd cmdv[] = { - {"auloop", 'a', 0, "Start audio-loop", auloop_start }, - {"auloop_stop", 'A', 0, "Stop audio-loop", auloop_stop }, + {"auloop", 0, 0, "Start audio-loop", auloop_start }, + {"auloop_stop", 0, 0, "Stop audio-loop", auloop_stop }, }; diff --git a/modules/menu/menu.c b/modules/menu/menu.c index 66d6894..9036f56 100644 --- a/modules/menu/menu.c +++ b/modules/menu/menu.c @@ -408,8 +408,7 @@ static int cmd_print_calls(struct re_printf *pf, void *unused) static const struct cmd cmdv[] = { -{NULL, '\n', 0, "Accept incoming call", cmd_answer }, -{"accept", 'D', 0, "Accept incoming call", cmd_answer }, +{"accept", 'a', 0, "Accept incoming call", cmd_answer }, {"hangup", 'b', 0, "Hangup call", cmd_hangup }, {"callstat", 'c', 0, "Call status", ua_print_call_status }, {"dial", 'd', CMD_PRM, "Dial", dial_handler }, @@ -841,7 +840,7 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev, uag_current_set(ua); info("%s: Incoming call from: %s %s -" - " (press ENTER to accept)\n", + " (press 'a' to accept)\n", ua_aor(ua), call_peername(call), call_peeruri(call)); /* stop any ringtones */ -- cgit v1.2.3