]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't hangup on a caller that was transfered out of queue
authorMichael Jerris <mike@jerris.com>
Wed, 7 Jul 2010 23:57:32 +0000 (19:57 -0400)
committerMichael Jerris <mike@jerris.com>
Wed, 7 Jul 2010 23:57:32 +0000 (19:57 -0400)
src/mod/applications/mod_fifo/mod_fifo.c

index 965cf28002d02b2f312e0c103c65a1923324c3e7..4c16bb1229d7a93f4a99dd3464097441af353524 100644 (file)
@@ -1204,7 +1204,7 @@ static void check_ocancel(switch_core_session_t *session)
 
        channel = switch_core_session_get_channel(session);
 
-       if ((var = switch_channel_get_variable(channel, "fifo_originate_uuid"))) {
+       if (!switch_channel_test_flag(channel, CF_TRANSFER) && (var = switch_channel_get_variable(channel, "fifo_originate_uuid"))) {
                switch_core_session_hupall_matching_var("fifo_originate_uuid", var, 
                                                                                                switch_channel_test_flag(channel, CF_ANSWERED) ? 
                                                                                                SWITCH_CAUSE_NORMAL_CLEARING : SWITCH_CAUSE_ORIGINATOR_CANCEL);