[asterisk-commits] file: trunk r66998 - /trunk/apps/app_mixmonitor.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Jun 4 04:48:02 MST 2007
Author: file
Date: Mon Jun 4 06:48:01 2007
New Revision: 66998
URL: http://svn.digium.com/view/asterisk?view=rev&rev=66998
Log:
Add support for autocompleting start/stop options of the mixmonitor CLI command. (issue #9862 reported by eliel)
Modified:
trunk/apps/app_mixmonitor.c
Modified: trunk/apps/app_mixmonitor.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_mixmonitor.c?view=diff&rev=66998&r1=66997&r2=66998
==============================================================================
--- trunk/apps/app_mixmonitor.c (original)
+++ trunk/apps/app_mixmonitor.c Mon Jun 4 06:48:01 2007
@@ -420,6 +420,11 @@
static char *complete_mixmonitor_cli(const char *line, const char *word, int pos, int state)
{
+ char *options[] = {"start", "stop", NULL};
+
+ if (pos == 1)
+ return ast_cli_complete (word, options, state);
+
return ast_complete_channels(line, word, pos, state, 2);
}
More information about the asterisk-commits
mailing list