From: Michael Jerris Date: Wed, 7 Jul 2010 23:57:32 +0000 (-0400) Subject: don't hangup on a caller that was transfered out of queue X-Git-Tag: v1.2-rc1~554 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99c98d970b1f168bda470635e1b807560cf3fe63;p=thirdparty%2Ffreeswitch.git don't hangup on a caller that was transfered out of queue --- diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index 965cf28002..4c16bb1229 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -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);