]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 4 Dec 2006 00:04:20 +0000 (00:04 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 4 Dec 2006 00:04:20 +0000 (00:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3524 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index fa21640995832e619c05fe46c87c6c1d0dc3ad81..6bb1376d467a8c8a69c5483bf4f526b8c49280dd 100644 (file)
@@ -2209,7 +2209,7 @@ static uint8_t check_channel_status(switch_channel_t **peer_channels,
                if (switch_channel_get_state(peer_channels[i]) >= CS_HANGUP) {
                        hups++;
                } else if ((switch_channel_test_flag(peer_channels[i], CF_ANSWERED) || 
-                                       (!ringback_data && len == 1 && switch_channel_test_flag(peer_channels[0], CF_EARLY_MEDIA))) && 
+                                       (!ringback_data && len == 1 && switch_channel_test_flag(peer_channels[i], CF_EARLY_MEDIA))) && 
                                   !switch_channel_test_flag(peer_channels[i], CF_TAGGED)) {
 
                        if (key) {