diff options
author | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-28 23:32:14 +0000 |
---|---|---|
committer | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-28 23:32:14 +0000 |
commit | b6fa2c3b98f454c4b179f7e365c519b45d15bbd4 (patch) | |
tree | d5167b9db2e6c55e56def0e52038799c477d3e3d /channels/chan_unistim.c | |
parent | 74e9c236bd6246f61bed0397adcf87adad399e2e (diff) |
Merge the cli_cleanup branch.
This work is done by lmadsen, junky and mvanbaak
during AstriDevCon.
This is the second audit the CLI got, and
this time lmadsen made sure he had _ALL_ modules
loaded that have CLI commands in them.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@145121 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_unistim.c')
-rw-r--r-- | channels/chan_unistim.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index 48a41fc7a..bd15f2896 100644 --- a/channels/chan_unistim.c +++ b/channels/chan_unistim.c @@ -4682,9 +4682,9 @@ static char *unistim_info(struct ast_cli_entry *e, int cmd, struct ast_cli_args switch (cmd) { case CLI_INIT: - e->command = "unistim info"; + e->command = "unistim show info"; e->usage = - "Usage: unistim info\n" + "Usage: unistim show info\n" " Dump internal structures.\n"; return NULL; @@ -4751,27 +4751,27 @@ static char *unistim_sp(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a switch (cmd) { case CLI_INIT: - e->command = "unistim sp"; + e->command = "unistim send packet"; e->usage = - "Usage: unistim sp USTM/line@name hexa\n" - " unistim sp USTM/1000@hans 19040004\n"; + "Usage: unistim send packet USTM/line@name hexa\n" + " unistim send packet USTM/1000@hans 19040004\n"; return NULL; case CLI_GENERATE: return NULL; /* no completion */ } - if (a->argc < 4) + if (a->argc < 5) return CLI_SHOWUSAGE; - if (strlen(a->argv[2]) < 9) + if (strlen(a->argv[3]) < 9) return CLI_SHOWUSAGE; - len = strlen(a->argv[3]); + len = strlen(a->argv[4]); if (len % 2) return CLI_SHOWUSAGE; - ast_copy_string(tmp, a->argv[2] + 5, sizeof(tmp)); + ast_copy_string(tmp, a->argv[3] + 5, sizeof(tmp)); sub = find_subchannel_by_name(tmp); if (!sub) { ast_cli(a->fd, "Can't find '%s'\n", tmp); @@ -4781,15 +4781,15 @@ static char *unistim_sp(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a ast_cli(a->fd, "'%s' is not connected\n", tmp); return CLI_SUCCESS; } - ast_cli(a->fd, "Sending '%s' to %s (%p)\n", a->argv[3], tmp, sub->parent->parent->session); + ast_cli(a->fd, "Sending '%s' to %s (%p)\n", a->argv[4], tmp, sub->parent->parent->session); for (i = 0; i < len; i++) { - c = a->argv[3][i]; + c = a->argv[4][i]; if (c >= 'a') c -= 'a' - 10; else c -= '0'; i++; - cc = a->argv[3][i]; + cc = a->argv[4][i]; if (cc >= 'a') cc -= 'a' - 10; else |