Skip to content

Commit 39c3b5e

Browse files
Merge branch 'freeswitch:main' into asr-grammar-conditions
2 parents 789a6f6 + 5eaae25 commit 39c3b5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mod_unimrcp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,6 +2571,9 @@ static switch_status_t recog_channel_check_results(speech_channel_t *schannel)
25712571
if (!zstr(r->result)) {
25722572
switch_log_printf(SWITCH_CHANNEL_UUID_LOG(schannel->session_uuid), SWITCH_LOG_DEBUG, "(%s) SUCCESS, have result\n", schannel->name);
25732573
status = SWITCH_STATUS_SUCCESS;
2574+
} else if (r->start_of_input == START_OF_INPUT_RECEIVED) {
2575+
switch_log_printf(SWITCH_CHANNEL_UUID_LOG(schannel->session_uuid), SWITCH_LOG_DEBUG, "(%s) SUCCESS, start of input\n", schannel->name);
2576+
status = SWITCH_STATUS_SUCCESS;
25742577
} else if (schannel->state == SPEECH_CHANNEL_CLOSED || schannel->state == SPEECH_CHANNEL_ERROR) {
25752578
switch_log_printf(SWITCH_CHANNEL_UUID_LOG(schannel->session_uuid), SWITCH_LOG_WARNING, "Closing speech channel due to invalid state [%s]\n", speech_channel_state_to_string(schannel->state));
25762579
status = SWITCH_STATUS_FALSE;

0 commit comments

Comments
 (0)