diff options
author | Michiel van Baak <michiel@vanbaak.info> | 2008-11-12 06:46:04 +0000 |
---|---|---|
committer | Michiel van Baak <michiel@vanbaak.info> | 2008-11-12 06:46:04 +0000 |
commit | 86f900b20105bf5e918d8347cab8557f33d5fdae (patch) | |
tree | 95cbe393b660ef9b967378388db5bd09c7a890f4 /channels/chan_skinny.c | |
parent | 5b25c263181989a1f86be2c2c94c4425ec30721a (diff) |
This commit does two things:
- Add CLI aliases module to asterisk.
- Remove all deprecated CLI commands from the code
Initial work done by file.
Junk-Y and lmadsen did a lot of work and testing to
get the list of deprecated commands into the configuration file.
Deprecated CLI commands are now handled by this new module,
see cli_aliases.conf for more info about that.
ok russellb@ via reviewboard
(closes issue #13735)
Reported by: mvanbaak
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@156120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_skinny.c')
-rw-r--r-- | channels/chan_skinny.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 8b06980c1..a72345cfe 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -2540,35 +2540,6 @@ static struct ast_rtp_protocol skinny_rtp = { .set_rtp_peer = skinny_set_rtp_peer, }; -static char *handle_skinny_set_debug_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) -{ - switch (cmd) { - case CLI_INIT: - e->command = "skinny set debug [off]"; - e->usage = - "Usage: skinny set debug [off]\n" - " Enables/Disables dumping of Skinny packets for debugging purposes\n"; - return NULL; - case CLI_GENERATE: - return NULL; - } - - if (a->argc < 3 || a->argc > 4) - return CLI_SHOWUSAGE; - - if (a->argc == 3) { - skinnydebug = 1; - ast_cli(a->fd, "Skinny Debugging Enabled\n"); - return CLI_SUCCESS; - } else if (!strncasecmp(a->argv[3], "off", 3)) { - skinnydebug = 0; - ast_cli(a->fd, "Skinny Debugging Disabled\n"); - return CLI_SUCCESS; - } else { - return CLI_SHOWUSAGE; - } -} - static char *handle_skinny_set_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) { switch (cmd) { @@ -3067,14 +3038,13 @@ static char *handle_skinny_show_settings(struct ast_cli_entry *e, int cmd, struc return CLI_SUCCESS; } -static struct ast_cli_entry cli_skinny_set_debug_deprecated = AST_CLI_DEFINE(handle_skinny_set_debug_deprecated, "Enable/Disable Skinny debugging"); static struct ast_cli_entry cli_skinny[] = { AST_CLI_DEFINE(handle_skinny_show_devices, "List defined Skinny devices"), AST_CLI_DEFINE(handle_skinny_show_device, "List Skinny device information"), AST_CLI_DEFINE(handle_skinny_show_lines, "List defined Skinny lines per device"), AST_CLI_DEFINE(handle_skinny_show_line, "List Skinny line information"), AST_CLI_DEFINE(handle_skinny_show_settings, "List global Skinny settings"), - AST_CLI_DEFINE(handle_skinny_set_debug, "Enable/Disable Skinny debugging", .deprecate_cmd = &cli_skinny_set_debug_deprecated), + AST_CLI_DEFINE(handle_skinny_set_debug, "Enable/Disable Skinny debugging"), AST_CLI_DEFINE(handle_skinny_reset, "Reset Skinny device(s)"), }; |