mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-31 14:18:17 +00:00
FS-11970 [core] Check if detection is done in switch_ivr_play_and_detect_speech() final loop.
This commit is contained in:
parent
28fc17a0c4
commit
5801df9333
@ -4593,7 +4593,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_and_detect_speech(switch_core_se
|
|||||||
if (!state.done) {
|
if (!state.done) {
|
||||||
switch_ivr_detect_speech_start_input_timers(session);
|
switch_ivr_detect_speech_start_input_timers(session);
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "(%s) WAITING FOR RESULT\n", switch_channel_get_name(channel));
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "(%s) WAITING FOR RESULT\n", switch_channel_get_name(channel));
|
||||||
while (switch_channel_ready(channel)) {
|
while (!state.done && switch_channel_ready(channel)) {
|
||||||
status = switch_ivr_sleep(session, input_timeout, SWITCH_FALSE, args);
|
status = switch_ivr_sleep(session, input_timeout, SWITCH_FALSE, args);
|
||||||
|
|
||||||
if (args->dmachine && switch_ivr_dmachine_last_ping(args->dmachine) != SWITCH_STATUS_SUCCESS) {
|
if (args->dmachine && switch_ivr_dmachine_last_ping(args->dmachine) != SWITCH_STATUS_SUCCESS) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user