Index: funcs/func_sysinfo.c =================================================================== --- funcs/func_sysinfo.c (revision 199082) +++ funcs/func_sysinfo.c (working copy) @@ -36,6 +36,57 @@ #include "asterisk/module.h" #include "asterisk/pbx.h" +/*** DOCUMENTATION + + + Returns system information specified by parameter. + + + + + + System load average from past minute. + + + Number of active calls currently in progress. + + + System uptime in hours. + This parameter is dependant upon operating system. + + + Total usable main memory size in KiB. + This parameter is dependant upon operating system. + + + Available memory size in KiB. + This parameter is dependant upon operating system. + + + Memory used by buffers in KiB. + This parameter is dependant upon operating system. + + + Total swap space still available in KiB. + This parameter is dependant upon operating system. + + + Free swap space still available in KiB. + This parameter is dependant upon operating system. + + + Number of current processes. + This parameter is dependant upon operating system. + + + + + + Returns information from a given parameter. + + + ***/ + static int sysinfo_helper(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) { @@ -83,24 +134,7 @@ static struct ast_custom_function sysinfo_function = { .name = "SYSINFO", - .synopsis = "Returns system information specified by parameter.", - .syntax = "SYSINFO()", .read = sysinfo_helper, - .read_max = 22, - .desc = -"Returns information from a given parameter\n" -" Options:\n" -" loadavg - system load average from past minute\n" -" numcalls - number of active calls currently in progress\n" -#if defined(HAVE_SYSINFO) -" uptime - system uptime in hours\n" -" totalram - total usable main memory size in KiB\n" -" freeram - available memory size in KiB\n" -" bufferram - memory used by buffers in KiB\n" -" totalswap - total swap space size in KiB\n" -" freeswap - free swap space still available in KiB\n" -" numprocs - number of current processes\n", -#endif /* HAVE_SYSINFO */ }; static int unload_module(void)