FSCORE-481

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15657 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2009-11-24 18:18:09 +00:00
1 parent cf8d26bef3
commit aba8d7590f
5 files changed
+42 -26

No files matched your search

+19
View File
@@ -1083,7 +1083,26 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses
switch_channel_set_state(peer_channel, CS_EXCHANGE_MEDIA);
audio_bridge_thread(NULL, (void *) a_leg);
if (switch_channel_test_flag(caller_channel, CF_LEG_HOLDING)) {
const char *ext = switch_channel_get_variable(caller_channel, "hold_hangup_xfer_exten");
if (!zstr(ext)) {
switch_channel_set_variable(peer_channel, SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE, ext);
}
switch_channel_clear_flag(caller_channel, CF_LEG_HOLDING);
}
if (switch_channel_test_flag(peer_channel, CF_LEG_HOLDING)) {
const char *ext = switch_channel_get_variable(peer_channel, "hold_hangup_xfer_exten");
if (!zstr(ext)) {
switch_channel_set_variable(caller_channel, SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE, ext);
}
switch_channel_clear_flag(peer_channel, CF_LEG_HOLDING);
}
switch_channel_clear_flag_recursive(caller_channel, CF_BRIDGE_ORIGINATOR);
switch_channel_stop_broadcast(peer_channel);
while (switch_channel_get_state(peer_channel) == CS_EXCHANGE_MEDIA) {
switch_cond_next();