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
This commit is contained in:
Michael Jerris 2008-05-28 20:53:23 +00:00
parent da2e5c9a9f
commit c3900427b6

View File

@ -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, "");