Skip to content

Commit 5eaae25

Browse files
authored
Merge pull request #23 from freeswitch/fix_start_of_input
Fix START-OF-INPUT detection.
2 parents 7211574 + ee30163 commit 5eaae25

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
@@ -2563,6 +2563,9 @@ static switch_status_t recog_channel_check_results(speech_channel_t *schannel)
25632563
if (!zstr(r->result)) {
25642564
switch_log_printf(SWITCH_CHANNEL_UUID_LOG(schannel->session_uuid), SWITCH_LOG_DEBUG, "(%s) SUCCESS, have result\n", schannel->name);
25652565
status = SWITCH_STATUS_SUCCESS;
2566+
} else if (r->start_of_input == START_OF_INPUT_RECEIVED) {
2567+
switch_log_printf(SWITCH_CHANNEL_UUID_LOG(schannel->session_uuid), SWITCH_LOG_DEBUG, "(%s) SUCCESS, start of input\n", schannel->name);
2568+
status = SWITCH_STATUS_SUCCESS;
25662569
} else if (schannel->state == SPEECH_CHANNEL_CLOSED || schannel->state == SPEECH_CHANNEL_ERROR) {
25672570
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));
25682571
status = SWITCH_STATUS_FALSE;

0 commit comments

Comments
 (0)