mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 18:38:02 +00:00
Change 'show locals' into 'local show channels' to follow other channel methods. Bug #1255
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -458,7 +458,7 @@ static int locals_show(int fd, int argc, char **argv)
|
|||||||
{
|
{
|
||||||
struct local_pvt *p;
|
struct local_pvt *p;
|
||||||
|
|
||||||
if (argc != 2)
|
if (argc != 3)
|
||||||
return RESULT_SHOWUSAGE;
|
return RESULT_SHOWUSAGE;
|
||||||
ast_mutex_lock(&locallock);
|
ast_mutex_lock(&locallock);
|
||||||
p = locals;
|
p = locals;
|
||||||
@@ -475,11 +475,11 @@ static int locals_show(int fd, int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char show_locals_usage[] =
|
static char show_locals_usage[] =
|
||||||
"Usage: show locals\n"
|
"Usage: local show channels\n"
|
||||||
" Provides summary information on locals.\n";
|
" Provides summary information on local channels.\n";
|
||||||
|
|
||||||
static struct ast_cli_entry cli_show_locals = {
|
static struct ast_cli_entry cli_show_locals = {
|
||||||
{ "show", "locals", NULL }, locals_show,
|
{ "local", "show", "channels", NULL }, locals_show,
|
||||||
"Show status of local channels", show_locals_usage, NULL };
|
"Show status of local channels", show_locals_usage, NULL };
|
||||||
|
|
||||||
int load_module()
|
int load_module()
|
||||||
|
|||||||
Reference in New Issue
Block a user