]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix causes some more
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 9 Feb 2007 20:36:01 +0000 (20:36 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 9 Feb 2007 20:36:01 +0000 (20:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4182 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index 82096cfe0a462a46368836c536de4f85353f784d..e90000b5d7f3ade4b69343b1684611d51eb0c885 100644 (file)
@@ -3553,7 +3553,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses
 
     if (switch_channel_get_state(caller_channel) < CS_HANGUP && 
         switch_true(switch_channel_get_variable(caller_channel, SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE))) {
-        switch_channel_hangup(caller_channel, SWITCH_CAUSE_NORMAL_CLEARING);
+        switch_channel_hangup(caller_channel, switch_channel_get_cause(peer_channel));
     }
 
        return status;