]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Aug 2012 22:17:15 +0000 (17:17 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Aug 2012 22:17:15 +0000 (17:17 -0500)
src/switch_ivr_originate.c

index 52e83f388d6219deb4bead6d6f03466f14286d5f..9fc7819f29427ab96496d230c0b1e8b7e1b1b33c 100644 (file)
@@ -694,8 +694,11 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
                        }
                }
 
-               if (!oglobals->early_ok && switch_channel_test_flag(originate_status[i].peer_channel, CF_EARLY_OK)) {
-                       oglobals->early_ok = 1;
+               if (switch_channel_test_flag(originate_status[i].peer_channel, CF_EARLY_OK)) {
+                       if (!oglobals->early_ok) {
+                               oglobals->early_ok = 1;
+                       }
+                       switch_channel_clear_flag(originate_status[i].peer_channel, CF_EARLY_OK);
                }
 
                state = switch_channel_get_state(originate_status[i].peer_channel);