Change 'show locals' into 'local show channels' to follow other channel methods....
authorJeremy McNamara <jj@nufone.net>
Sat, 20 Mar 2004 13:26:52 +0000 (13:26 +0000)
committerJeremy McNamara <jj@nufone.net>
Sat, 20 Mar 2004 13:26:52 +0000 (13:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2496 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index afce4af..0d56ec2 100755 (executable)
@@ -458,7 +458,7 @@ static int locals_show(int fd, int argc, char **argv)
 {
        struct local_pvt *p;
 
-       if (argc != 2)
+       if (argc != 3)
                return RESULT_SHOWUSAGE;
        ast_mutex_lock(&locallock);
        p = locals;
@@ -475,11 +475,11 @@ static int locals_show(int fd, int argc, char **argv)
 }
 
 static char show_locals_usage[] = 
-"Usage: show locals\n"
-"       Provides summary information on locals.\n";
+"Usage: local show channels\n"
+"       Provides summary information on local channels.\n";
 
 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 };
 
 int load_module()