]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4565 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 28 Aug 2012 17:57:47 +0000 (12:57 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 28 Aug 2012 17:57:47 +0000 (12:57 -0500)
src/switch_ivr.c

index 3296161c9de8884751756b8ccecd1ed4f9891787..0f98a9b856dc5de4cb0b7f2084ff29992d32877f 100644 (file)
@@ -556,9 +556,13 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
                        if (!switch_channel_test_flag(channel, CF_BRIDGED) || switch_channel_test_flag(channel, CF_BROADCAST)) {
                                inner++;
                                hold_bleg = NULL;
-                       } else {
+                       } 
+
+                       if (!switch_channel_test_flag(channel, CF_BROADCAST)) {
                                switch_channel_set_flag(channel, CF_BROADCAST);
+                               inner--;
                        }
+
                        if (hold_bleg && switch_true(hold_bleg)) {
                                if ((b_uuid = switch_channel_get_partner_uuid(channel))) {
                                        const char *stream;