add support for configurable timeout and passing of args to play_and_detect_speech

This commit is contained in:
Anthony Minessale committed 2012-01-05 10:38:08 -06:00
1 parent e185ff0075
commit 410e523c24
3 files changed
+45 -15

No files matched your search

@@ -495,7 +495,7 @@ SWITCH_STANDARD_APP(play_and_detect_speech_function)
char *engine = argv[0];
char *grammar = argv[1];
char *result = NULL;
switch_ivr_play_and_detect_speech(session, file, engine, grammar, &result);
switch_ivr_play_and_detect_speech(session, file, engine, grammar, &result, 0, NULL);
switch_channel_set_variable(channel, "detect_speech_result", result);
} else {
/* bad input */