]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3275 try this
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 22 Jun 2011 20:35:35 +0000 (15:35 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 22 Jun 2011 20:35:35 +0000 (15:35 -0500)
src/switch_ivr_async.c

index f9cf24ef830946d618417ecb14482ea4116e02dd..4c2a140379b83a5a9dd63b0bec16c9cd73de5fda 100644 (file)
@@ -1287,7 +1287,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session
                msg.message_id = SWITCH_MESSAGE_INDICATE_DISPLAY;
                switch_core_session_receive_message(tsession, &msg);
 
-               while (switch_channel_ready(tchannel) && switch_channel_ready(channel)) {
+               while (switch_channel_up(tchannel) && switch_channel_ready(channel)) {
                        uint32_t len = sizeof(buf);
                        switch_event_t *event = NULL;
                        char *fcommand = NULL;