]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5549 regression
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 30 Sep 2013 17:11:36 +0000 (22:11 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 30 Sep 2013 17:11:36 +0000 (22:11 +0500)
src/switch_ivr_bridge.c

index 2fa736834b85487cc11fd22a9a48d7849e15de98..ef7067cec79f4ebe7583c81ff68cc606a06e5e48 100644 (file)
@@ -1108,7 +1108,9 @@ static switch_status_t signal_bridge_on_hangup(switch_core_session_t *session)
                                                }
                                                switch_channel_hangup(other_channel, switch_channel_get_cause(channel));
                                        } else {
-                                               switch_channel_handle_cause(other_channel, switch_channel_get_cause(channel));
+                                               if (!switch_channel_test_flag(channel, CF_ANSWERED)) {
+                                                       switch_channel_handle_cause(other_channel, switch_channel_get_cause(channel));
+                                               }
                                                switch_channel_set_state(other_channel, CS_EXECUTE);
                                        }
                                } else {