FS-9153 #resolve [uuid_bridge issue on ESL]

This commit is contained in:
Anthony Minessale 2016-05-16 12:23:11 -05:00
parent 00a64734ed
commit 1c9f6cc301
1 changed files with 3 additions and 1 deletions

View File

@ -2771,7 +2771,9 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
channel = switch_core_session_get_channel(listener->session);
}
if (channel && (switch_test_flag(listener, LFLAG_RESUME) || ((var = switch_channel_get_variable(channel, "socket_resume")) && switch_true(var)))) {
if (channel &&
!switch_channel_test_flag(channel, CF_REDIRECT) && !switch_channel_test_flag(channel, CF_TRANSFER) && !switch_channel_test_flag(channel, CF_RESET) &&
(switch_test_flag(listener, LFLAG_RESUME) || ((var = switch_channel_get_variable(channel, "socket_resume")) && switch_true(var)))) {
switch_channel_set_state(channel, CS_RESET);
}