mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
fix issue in monitor_early_media_fail issue
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12271 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
4a520847c2
commit
9556be51ef
17 files changed
+43
-43
No files matched your search
@@ -1774,13 +1774,14 @@ static void *SWITCH_THREAD_FUNC speech_thread(switch_thread_t *thread, void *obj
|
||||
|
||||
sth->ready = 1;
|
||||
|
||||
while (switch_channel_ready(channel) && !switch_test_flag(sth->ah, SWITCH_ASR_FLAG_CLOSED)) {
|
||||
while (switch_channel_up(channel) && !switch_test_flag(sth->ah, SWITCH_ASR_FLAG_CLOSED)) {
|
||||
char *xmlstr = NULL;
|
||||
|
||||
switch_thread_cond_wait(sth->cond, sth->mutex);
|
||||
|
||||
if (switch_test_flag(sth->ah, SWITCH_ASR_FLAG_CLOSED))
|
||||
if (switch_channel_down(channel) || switch_test_flag(sth->ah, SWITCH_ASR_FLAG_CLOSED)) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (switch_core_asr_check_results(sth->ah, &flags) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_event_t *event;
|
||||
|
||||
Reference in new issue
Block a user