aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-30 20:34:41 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-30 20:34:41 +0000
commit5c6045484ea458646ede726e8e5b356fb4b2ccff (patch)
treed72698135df3101c70e8dbd235a4003b101d9424 /main/cli.c
parentcc7db6fac8aa63bff671cb0d41e682341b943ddf (diff)
Fix compiling with LOW_MEMORY.
Modified handle_verbose to be LOW_MEMORY aware, removed old RTP related code in chan_sip. (closes issue #16381) Reported by: michael_iedema Patches: ast_complete_source_filename.patch uploaded by michael iedema (license 942) modified by me git-svn-id: http://svn.digium.com/svn/asterisk/trunk@236893 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/main/cli.c b/main/cli.c
index abfc8f0a9..6d227fb1e 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -377,10 +377,18 @@ static char *handle_verbose(struct ast_cli_entry *e, int cmd, struct ast_cli_arg
case CLI_INIT:
e->command = "core set {debug|verbose}";
e->usage =
+#if !defined(LOW_MEMORY)
"Usage: core set {debug|verbose} [atleast] <level> [filename]\n"
+#else
+ "Usage: core set {debug|verbose} [atleast] <level>\n"
+#endif
" core set {debug|verbose} off\n"
+#if !defined(LOW_MEMORY)
" Sets level of debug or verbose messages to be displayed or \n"
" sets a filename to display debug messages from.\n"
+#else
+ " Sets level of debug or verbose messages to be displayed.\n"
+#endif
" 0 or off means no messages should be displayed.\n"
" Equivalent to -d[d[...]] or -v[v[v...]] on startup\n";
return NULL;
@@ -406,8 +414,10 @@ static char *handle_verbose(struct ast_cli_entry *e, int cmd, struct ast_cli_arg
} else if (a->n == (22 - numbermatch) && a->pos == 3 && ast_strlen_zero(argv3)) {
return ast_strdup("atleast");
}
+#if !defined(LOW_MEMORY)
} else if (a->pos == 4 || (a->pos == 5 && !strcasecmp(argv3, "atleast"))) {
return ast_complete_source_filename(a->pos == 4 ? S_OR(a->argv[4], "") : S_OR(a->argv[5], ""), a->n);
+#endif
}
return NULL;
}