]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4166
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 30 Apr 2012 22:51:31 +0000 (17:51 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 30 Apr 2012 22:51:31 +0000 (17:51 -0500)
src/switch_ivr_originate.c

index 3cad2e343a4be0e5a8892cb090f8d26bcac994c9..4a3067afc2ab59a87dc5c7e77e719054334c7102 100644 (file)
@@ -3128,7 +3128,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                                switch_ivr_uuid_bridge(holding, switch_core_session_get_uuid(peer_session));
                                                holding = NULL;
                                                oglobals.idx = IDX_NADA;
-                                               if (caller_channel && switch_channel_up_nosig(caller_channel)) {
+                                               if (caller_channel && switch_channel_up_nosig(caller_channel) && !switch_channel_test_flag(caller_channel, CF_INTERCEPTED)) {
                                                        switch_channel_hangup(caller_channel, SWITCH_CAUSE_ATTENDED_TRANSFER);
                                                }
                                                caller_channel = NULL;