From c3900427b6c57028542a98a0660a45276deb7d2c Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 28 May 2008 20:53:23 +0000 Subject: [PATCH] add example of how modules can add their own commands to the tab complete db git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8709 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_commands/mod_commands.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 4ae204daa9..ab6d041da3 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -2302,6 +2302,17 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_commands_load) SWITCH_ADD_API(commands_api_interface, "pause", "Pause", pause_function, PAUSE_SYNTAX); SWITCH_ADD_API(commands_api_interface, "break", "Break", break_function, BREAK_SYNTAX); SWITCH_ADD_API(commands_api_interface, "show", "Show", show_function, SHOW_SYNTAX); + switch_console_set_complete("add show channels"); + switch_console_set_complete("add show codec"); + switch_console_set_complete("add show application"); + switch_console_set_complete("add show api"); + switch_console_set_complete("add show dialplan"); + switch_console_set_complete("add show file"); + switch_console_set_complete("add show timer"); + switch_console_set_complete("add show calls"); + switch_console_set_complete("add show channels"); + switch_console_set_complete("add show aliases"); + switch_console_set_complete("add show complete"); SWITCH_ADD_API(commands_api_interface, "complete", "Complete", complete_function, COMPLETE_SYNTAX); SWITCH_ADD_API(commands_api_interface, "alias", "Alias", alias_function, ALIAS_SYNTAX); SWITCH_ADD_API(commands_api_interface, "status", "status", status_function, "");