[asterisk-commits] file: branch file/speech-agi r90525 - /team/file/speech-agi/res/res_agi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Dec 3 08:57:16 CST 2007
Author: file
Date: Mon Dec 3 08:57:16 2007
New Revision: 90525
URL: http://svn.digium.com/view/asterisk?view=rev&rev=90525
Log:
Remove mode argument to SPEECH RECOGNIZE, not needed.
Modified:
team/file/speech-agi/res/res_agi.c
Modified: team/file/speech-agi/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/team/file/speech-agi/res/res_agi.c?view=diff&rev=90525&r1=90524&r2=90525
==============================================================================
--- team/file/speech-agi/res/res_agi.c (original)
+++ team/file/speech-agi/res/res_agi.c Mon Dec 3 08:57:16 2007
@@ -1448,7 +1448,7 @@
static int handle_speechrecognize(struct ast_channel *chan, AGI *agi, int argc, char **argv)
{
struct ast_speech *speech = agi->speech;
- char *prompt, *mode, dtmf = 0, tmp[4096] = "", *buf = tmp;
+ char *prompt, dtmf = 0, tmp[4096] = "", *buf = tmp;
int timeout = 0, offset = 0, old_read_format = 0, res = 0, i = 0;
long current_offset = 0;
const char *reason = NULL;
@@ -1457,7 +1457,7 @@
size_t left = sizeof(tmp);
time_t start = 0, current;
- if (argc != 5)
+ if (argc != 4)
return RESULT_SHOWUSAGE;
if (!speech) {
@@ -1467,11 +1467,10 @@
prompt = argv[2];
timeout = atoi(argv[3]);
- mode = argv[4];
/* If offset is specified then convert from text to integer */
- if (argc == 6)
- offset = atoi(argv[5]);
+ if (argc == 5)
+ offset = atoi(argv[4]);
/* We want frames coming in signed linear */
old_read_format = chan->readformat;
@@ -1920,7 +1919,7 @@
" Deactivates the specified grammar on the speech object.\n";
static char usage_speechrecognize[] =
-" Usage: SPEECH RECOGNIZE <prompt> <timeout> <mode> [<offset>]\n"
+" Usage: SPEECH RECOGNIZE <prompt> <timeout> [<offset>]\n"
" Plays back given prompt while listening for speech and dtmf.\n";
static agi_command commands[MAX_COMMANDS] = {
More information about the asterisk-commits
mailing list