]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix some CLI commands we borked during devcon2008
authorMichiel van Baak <michiel@vanbaak.info>
Thu, 9 Oct 2008 17:01:24 +0000 (17:01 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Thu, 9 Oct 2008 17:01:24 +0000 (17:01 +0000)
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

channels/chan_dahdi.c
channels/chan_h323.c
channels/chan_misdn.c

index 9adad9c4d880d5a6db523d65dd62d974fc59b348..4059eae0c53696a190d23e16b70c2d48ed21ca47 100644 (file)
@@ -11654,7 +11654,7 @@ static char *handle_pri_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_a
        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";
index b374aff0f0d5daca7d0de9efc942e4f2a69c49a8..7bb92381183f3f1c0ae133c8e2389a35b558a38e 100644 (file)
@@ -2633,6 +2633,9 @@ static char *handle_cli_h323_set_trace(struct ast_cli_entry *e, int cmd, struct
        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);
index 7f71df079102122601795f00572188f5afae5bad..25316a0dc2eb409b62bda50d1e56ef0c7d5a51f9 100644 (file)
@@ -737,7 +737,7 @@ static char *handle_cli_misdn_set_debug(struct ast_cli_entry *e, int cmd, struct
 
        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";