diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 2d55b721c5..1606d968ae 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -454,7 +454,7 @@ static switch_status_t show_function(char *cmd, switch_core_session_t *session, sprintf (sql, "select type, name from interfaces where type = '%s'", cmd); } else if (!strcmp(cmd,"application") || !strcmp(cmd,"api")) { - sprintf (sql, "select * from interfaces where type = '%s'", cmd); + sprintf (sql, "select name, description, syntax from interfaces where type = '%s'", cmd); } else if ( !strcmp(cmd,"calls")) { sprintf (sql, "select * from calls"); @@ -468,9 +468,9 @@ static switch_status_t show_function(char *cmd, switch_core_session_t *session, holder.print_title = 0; if ((cmdname = strchr(cmd, ' ')) != 0) { *cmdname++ = '\0'; - sprintf (sql, "select name, description, syntax from interfaces where type = 'api' and name = '%s'", cmdname); + sprintf (sql, "select name, syntax, description from interfaces where type = 'api' and name = '%s'", cmdname); } else { - sprintf (sql, "select name, description, syntax from interfaces where type = 'api'"); + sprintf (sql, "select name, syntax, description from interfaces where type = 'api'"); } } else { @@ -529,7 +529,7 @@ static switch_api_interface_t help_api_interface = { /*.interface_name */ "help", /*.desc */ "Show help for all the api commands", /*.function */ help_function, - /*.syntax */ "help", + /*.syntax */ "", /*.next */ NULL }; @@ -537,7 +537,7 @@ static switch_api_interface_t ctl_api_interface = { /*.interface_name */ "fsctl", /*.desc */ "control messages", /*.function */ ctl_function, - /*.syntax */ "fsctl [hupall|pause|resume|shutdown]", + /*.syntax */ "[hupall|pause|resume|shutdown]", /*.next */ &help_api_interface }; @@ -545,7 +545,7 @@ static switch_api_interface_t uuid_bridge_api_interface = { /*.interface_name */ "uuid_bridge", /*.desc */ "uuid_bridge", /*.function */ uuid_bridge_function, - /*.syntax */ "uuid_bridge ", + /*.syntax */ " ", /*.next */ &ctl_api_interface }; @@ -553,7 +553,7 @@ static switch_api_interface_t status_api_interface = { /*.interface_name */ "status", /*.desc */ "status", /*.function */ status_function, - /*.syntax */ "status", + /*.syntax */ "", /*.next */ &uuid_bridge_api_interface }; @@ -561,7 +561,7 @@ static switch_api_interface_t show_api_interface = { /*.interface_name */ "show", /*.desc */ "Show", /*.function */ show_function, - /*.syntax */ "show |codec|application|api|dialplan|file|timer|calls|channels", + /*.syntax */ "|codec|application|api|dialplan|file|timer|calls|channels", /*.next */ &status_api_interface }; @@ -569,7 +569,7 @@ static switch_api_interface_t pause_api_interface = { /*.interface_name */ "pause", /*.desc */ "Pause", /*.function */ pause_function, - /*.syntax */ "pause ", + /*.syntax */ " ", /*.next */ &show_api_interface }; @@ -577,7 +577,7 @@ static switch_api_interface_t transfer_api_interface = { /*.interface_name */ "transfer", /*.desc */ "Transfer", /*.function */ transfer_function, - /*.syntax */ "transfer [] []", + /*.syntax */ " [] []", /*.next */ &pause_api_interface }; @@ -585,7 +585,7 @@ static switch_api_interface_t load_api_interface = { /*.interface_name */ "load", /*.desc */ "Load Module", /*.function */ load_function, - /*.syntax */ "load ", + /*.syntax */ "", /*.next */ &transfer_api_interface }; @@ -593,7 +593,7 @@ static switch_api_interface_t reload_api_interface = { /*.interface_name */ "reloadxml", /*.desc */ "Reload XML", /*.function */ reload_function, - /*.syntax */ "reloadxml", + /*.syntax */ "", /*.next */ &load_api_interface, }; @@ -602,7 +602,7 @@ static switch_api_interface_t kill_api_interface = { /*.interface_name */ "killchan", /*.desc */ "Kill Channel", /*.function */ kill_function, - /*.syntax */ "killchan ", + /*.syntax */ "", /*.next */ &reload_api_interface }; @@ -610,7 +610,7 @@ static switch_api_interface_t originate_api_interface = { /*.interface_name */ "originate", /*.desc */ "Originate a Call", /*.function */ originate_function, - /*.syntax */ "originate |&() [] [] [] [] []", + /*.syntax */ " |&() [] [] [] [] []", /*.next */ &kill_api_interface }; diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index d3a493e093..9ccb5031c5 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -2647,26 +2647,25 @@ static switch_api_interface_t conf_api_interface = { /*.desc */ "Conference", /*.function */ conf_function, /*.syntax */ - "conference commands\n" - "conference list [delim ]\n" - "conference list [delim ]\n" - "conference energy []\n" - "conference volume_in []\n" - "conference volume_out []\n" - "conference play []\n" - "conference say \n" - "conference saymember \n" - "conference stop <[current|all]> []\n" - "conference kick \n" - "conference mute \n" - "conference unmute \n" - "conference deaf \n" - "conference undef \n" - "conference relate [nospeak|nohear]\n" - "conference lock\n" - "conference unlock\n" - "conference dial /\n" - "conference transfer \n", + "list [delim ]\n" + " list [delim ]\n" + " energy []\n" + " volume_in []\n" + " volume_out []\n" + " play []\n" + " say \n" + " saymember \n" + " stop <[current|all]> []\n" + " kick \n" + " mute \n" + " unmute \n" + " deaf \n" + " undef \n" + " relate [nospeak|nohear]\n" + " lock\n" + " unlock\n" + " dial /\n" + " transfer ", /*.next */ }; diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index f1ae020427..188e15972f 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -132,7 +132,7 @@ static switch_api_interface_t dptools_api_interface = { /*.interface_name */ "strftime", /*.desc */ "strftime", /*.function */ strftime_api_function, - /*.syntax */ "strftime ", + /*.syntax */ "", /*.next */ NULL }; @@ -140,7 +140,7 @@ static const switch_application_interface_t set_application_interface = { /*.interface_name */ "set", /*.application_function */ set_function, /* long_desc */ "Set a channel varaible for the channel calling the application.", - /* short_desc */ "Set a channel varaible.", + /* short_desc */ "Set a channel varaible", /* syntax */ "=[|_UNDEF_]", /*.next */ NULL }; @@ -149,7 +149,7 @@ static const switch_application_interface_t answer_application_interface = { /*.interface_name */ "answer", /*.application_function */ answer_function, /* long_desc */ "Answer the call for a channel.", - /* short_desc */ "Answer the call.", + /* short_desc */ "Answer the call", /* syntax */ "", /*.next */ &set_application_interface