1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-03-05 10:08:08 +00:00

[core] Update switch_ivr_bridge_bleg to skip audio bridge during transfer

This commit is contained in:
Chris Rienzo 2019-10-23 16:37:55 -04:00 committed by Andrey Volk
parent 8aafff281b
commit 1442186cee

@ -1099,7 +1099,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_bridge_bleg(switch_core_session_t *se
switch_channel_clear_flag(channel, CF_ARRANGED_BRIDGE);
return SWITCH_STATUS_FALSE;
} else {
audio_bridge_on_exchange_media(session);
switch_channel_t *channel = switch_core_session_get_channel(session);
if (!switch_channel_test_flag(channel, CF_TRANSFER)) {
audio_bridge_on_exchange_media(session);
}
}
return SWITCH_STATUS_SUCCESS;