]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
only parse messages from channel_ready when its a session calling channel ready on...
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 5 Jul 2011 20:29:13 +0000 (15:29 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 5 Jul 2011 20:29:18 +0000 (15:29 -0500)
src/switch_channel.c

index d733fdebca066c324c9c9dc0d263186720b70a41..0d25d4d4cc7b38c47229591bfd5e651c02277933 100644 (file)
@@ -1723,7 +1723,7 @@ SWITCH_DECLARE(int) switch_channel_test_ready(switch_channel_t *channel, switch_
        }
 
        if (ret) {
-               if (!switch_channel_test_flag(channel, CF_LEG_HOLDING)) {
+               if (!switch_channel_test_flag(channel, CF_LEG_HOLDING) && switch_core_session_in_thread(channel->session)) {
                        switch_ivr_parse_all_events(channel->session);
                }
        }