]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix small broadcast bug
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 5 Sep 2012 00:08:06 +0000 (19:08 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 5 Sep 2012 00:08:06 +0000 (19:08 -0500)
src/switch_ivr.c

index 0f98a9b856dc5de4cb0b7f2084ff29992d32877f..95f0e901d8108fa4f50ab1792f2bbb903cc75804 100644 (file)
@@ -560,7 +560,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
 
                        if (!switch_channel_test_flag(channel, CF_BROADCAST)) {
                                switch_channel_set_flag(channel, CF_BROADCAST);
-                               inner--;
+                               if (inner) {
+                                       inner--;
+                               }
                        }
 
                        if (hold_bleg && switch_true(hold_bleg)) {
@@ -611,7 +613,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
 
                                if (switch_core_session_execute_application(session, app_name, app_arg) != SWITCH_STATUS_SUCCESS) {
                                        if (!inner || switch_channel_test_flag(channel, CF_STOP_BROADCAST)) switch_channel_clear_flag(channel, CF_BROADCAST);
-                                       goto done;
+                                       break;
                                }
 
                                aftr = switch_micro_time_now();