From 20976da4114c2c5fc0213fa4cda91f7f4bf8a136 Mon Sep 17 00:00:00 2001 From: Christopher Rienzo Date: Fri, 4 Feb 2011 20:18:33 +0000 Subject: [PATCH] forgot this spot when closing speech channel --- src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c b/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c index 812744c2ec..734ef21e29 100644 --- a/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c +++ b/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c @@ -1362,6 +1362,8 @@ static switch_status_t speech_channel_stop(speech_channel_t *schannel) goto done; } switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "(%s) %s stopped\n", schannel->name, speech_channel_type_to_string(schannel->type)); + } else if (schannel->state == SPEECH_CHANNEL_DONE) { + speech_channel_set_state(schannel, SPEECH_CHANNEL_READY); } done: