FS-10328: [freeswitch-core] Add method to allow orphaned B legs during originate to transfer to another extension

This commit is contained in:
Anthony Minessale 2017-05-19 19:05:44 -05:00 committed by Mike Jerris
parent b2a692432d
commit 76e0b3bdee
1 changed files with 2 additions and 1 deletions

View File

@ -3204,7 +3204,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
if (oglobals.session &&
!switch_channel_test_flag(caller_channel, CF_PROXY_MODE) &&
!switch_channel_test_flag(caller_channel, CF_PROXY_MEDIA) &&
!switch_channel_test_flag(caller_channel, CF_XFER_ZOMBIE) &&
//!switch_channel_test_flag(caller_channel, CF_XFER_ZOMBIE) &&
switch_channel_up(caller_channel) &&
(oglobals.ringback_ok
|| (switch_channel_test_flag(caller_channel, CF_ANSWERED) || switch_channel_test_flag(caller_channel, CF_EARLY_MEDIA)))) {