]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add more tab completion details
authorMichael Jerris <mike@jerris.com>
Wed, 28 May 2008 21:36:16 +0000 (21:36 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 28 May 2008 21:36:16 +0000 (21:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8712 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_fifo/mod_fifo.c
src/mod/applications/mod_limit/mod_limit.c
src/mod/endpoints/mod_portaudio/mod_portaudio.c
src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/xml_int/mod_xml_curl/mod_xml_curl.c

index 58e9b99887a30a4343d9669b90e15878c0070df3..2c035b938ab9f3842cb872563b9391c87de9a4a7 100644 (file)
@@ -1194,6 +1194,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_fifo_load)
        *module_interface = switch_loadable_module_create_module_interface(pool, modname);
        SWITCH_ADD_APP(app_interface, "fifo", "Park with FIFO", FIFO_DESC, fifo_function, FIFO_USAGE, SAF_NONE);
        SWITCH_ADD_API(commands_api_interface, "fifo", "Return data about a fifo", fifo_api_function, FIFO_API_SYNTAX);
+       switch_console_set_complete("add fifo list");\r
+       switch_console_set_complete("add fifo list_verbose");\r
+       switch_console_set_complete("add fifo count");\r
+       switch_console_set_complete("add fifo importance");\r
+
        globals.running = 1;
 
        return SWITCH_STATUS_SUCCESS;
index feee10b83d75be7cb6c586a4f869bb3e18005686..9002dd3640f91c16942a80949f6791d0d83615af 100644 (file)
@@ -623,7 +623,13 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_limit_load)
        SWITCH_ADD_APP(app_interface, "group", "Manage a group", GROUP_DESC, group_function, GROUP_USAGE, SAF_SUPPORT_NOMEDIA);
 
        SWITCH_ADD_API(commands_api_interface, "db", "db get/set", db_api_function, "[insert|delete|select]/<realm>/<key>/<value>");
+       switch_console_set_complete("add db insert");\r
+       switch_console_set_complete("add db delete");\r
+       switch_console_set_complete("add db select");\r
        SWITCH_ADD_API(commands_api_interface, "group", "group [insert|delete|call]", group_api_function, "[insert|delete|call]:<group name>:<url>");
+       switch_console_set_complete("add group insert");\r
+       switch_console_set_complete("add group delete");\r
+       switch_console_set_complete("add group call");\r
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index e32a2c39befc90fa02b93c59ef62a98a80c251e6..fdf19ad4c853c9406d215b7fdf321f80c03ca47e 100644 (file)
@@ -729,7 +729,19 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_portaudio_load)
        portaudio_endpoint_interface->state_handler = &portaudio_event_handlers;
 
        SWITCH_ADD_API(api_interface, "pa", "PortAudio", pa_cmd, "<command> [<args>]");
-
+       switch_console_set_complete("add pa help");
+       switch_console_set_complete("add pa dump");
+       switch_console_set_complete("add pa call");
+       switch_console_set_complete("add pa answer");
+       switch_console_set_complete("add pa hangup");
+       switch_console_set_complete("add pa list");
+       switch_console_set_complete("add pa switch");
+       switch_console_set_complete("add pa dtmf");
+       switch_console_set_complete("add pa flags");
+       switch_console_set_complete("add pa devlist");
+       switch_console_set_complete("add pa indev");
+       switch_console_set_complete("add pa outdev");
+       switch_console_set_complete("add pa ringdev");
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
 }
index 6fb2a68439c73917f0b1e7521fd9b1a35691b56d..a08896a2f615da97dc2bd8a5719a3d488085379f 100644 (file)
@@ -1997,6 +1997,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_sofia_load)
        management_interface->management_function = sofia_manage;
 
        SWITCH_ADD_API(api_interface, "sofia", "Sofia Controls", sofia_function, "<cmd> <args>");
+       switch_console_set_complete("add sofia help");
+       switch_console_set_complete("add sofia status");
+       switch_console_set_complete("add sofia loglevel");
+       switch_console_set_complete("add sofia profile");
+
        SWITCH_ADD_API(api_interface, "sofia_contact", "Sofia Contacts", sofia_contact_function, "[profile/]<user>@<domain>");
        SWITCH_ADD_CHAT(chat_interface, SOFIA_CHAT_PROTO, sofia_presence_chat_send);
 
index b622c9d470dd171617b5ed9d0f6c7ac58213a890..dffb5e86438dcf0d5d3f9768ff7dbc4bf431932b 100644 (file)
@@ -318,6 +318,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_curl_load)
        *module_interface = switch_loadable_module_create_module_interface(pool, modname);
 
        SWITCH_ADD_API(xml_curl_api_interface, "xml_curl", "XML Curl", xml_curl_function, XML_CURL_SYNTAX);
+       switch_console_set_complete("add xml_curl debug_on");
+       switch_console_set_complete("add xml_curl debug_off");
+
 
        if (do_config() == SWITCH_STATUS_SUCCESS) {
                curl_global_init(CURL_GLOBAL_ALL);