[Freeswitch-svn] [commit] r8709 - freeswitch/trunk/src/mod/applications/mod_commands

Freeswitch SVN mikej at freeswitch.org
Wed May 28 16:53:24 EDT 2008


Author: mikej
Date: Wed May 28 16:53:23 2008
New Revision: 8709

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c

Log:
add example of how modules can add their own commands to the tab complete db

Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	Wed May 28 16:53:23 2008
@@ -2302,6 +2302,17 @@
 	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, "");



More information about the Freeswitch-svn mailing list