Thanks rmudget for letting me know and providing hints on how to fix it best.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@147853
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
int level = 0;
switch (cmd) {
case CLI_INIT:
- e->command = "pri set debug {<level>|on|off} span";
+ e->command = "pri set debug [on|off] span";
e->usage =
"Usage: pri set debug <level|on|off> span <span>\n"
" Enables debugging on a given PRI span\n";
if (!strcasecmp(a->argv[3], "off")) {
h323_debug(0, 0);
ast_cli(a->fd, "H.323 Trace Disabled\n");
+ } else if (!strcasecmp(a->argv[3], "on")) {
+ h323_debug(1, 1);
+ ast_cli(a->fd, "H.323 Trace Enabled\n");
} else {
int tracelevel = atoi(a->argv[3]);
h323_debug(1, tracelevel);
switch (cmd) {
case CLI_INIT:
- e->command = "misdn set debug {on|off|<level>}";
+ e->command = "misdn set debug [on|off]";
e->usage =
"Usage: misdn set debug {on|off|<level>} [only] | [port <port> [only]]\n"
" Set the debug level of the mISDN channel.\n";