diff --git a/funcs/func_sysinfo.c b/funcs/func_sysinfo.c
index 8fdfda3f17..2d9a8dd24e 100644
--- a/funcs/func_sysinfo.c
+++ b/funcs/func_sysinfo.c
@@ -36,6 +36,57 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 87233 $")
#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,8 @@ static int sysinfo_helper(struct ast_channel *chan, const char *cmd, char *data,
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)