[asterisk-commits] mvanbaak: trunk r150664 - /trunk/main/cli.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 17 12:31:08 CDT 2008


Author: mvanbaak
Date: Fri Oct 17 12:31:07 2008
New Revision: 150664

URL: http://svn.digium.com/view/asterisk?view=rev&rev=150664
Log:
Fix CLI command 'channel request hangup'
Prodded on IRC by Russell and fixed by eliel

(closes issue #13730)
Reported by: eliel
Patches:
      main_cli.patch uploaded by eliel (license 64)

Modified:
    trunk/main/cli.c

Modified: trunk/main/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cli.c?view=diff&rev=150664&r1=150663&r2=150664
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Fri Oct 17 12:31:07 2008
@@ -763,7 +763,7 @@
 			"       the next time the driver reads or writes from the channel\n";
 		return NULL;
 	case CLI_GENERATE:
-		return ast_complete_channels(a->line, a->word, a->pos, a->n, 2);
+		return ast_complete_channels(a->line, a->word, a->pos, a->n, e->args);
 	}
 	if (a->argc != 4)
 		return CLI_SHOWUSAGE;
@@ -773,7 +773,7 @@
 		ast_softhangup(c, AST_SOFTHANGUP_EXPLICIT);
 		ast_channel_unlock(c);
 	} else
-		ast_cli(a->fd, "%s is not a known channel\n", a->argv[2]);
+		ast_cli(a->fd, "%s is not a known channel\n", a->argv[3]);
 	return CLI_SUCCESS;
 }
 




More information about the asterisk-commits mailing list