mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-10 06:11:53 +00:00
add support for configurable timeout and passing of args to play_and_detect_speech
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user