mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-15 11:29:56 +00:00
FS-4470 --resolve 2 for one fix
This commit is contained in:
parent
dc1422998a
commit
71b64412b9
@ -1690,6 +1690,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_transfer(switch_core_session_
|
|||||||
|
|
||||||
switch_channel_set_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE, NULL);
|
switch_channel_set_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE, NULL);
|
||||||
|
|
||||||
|
/* Set CF_TRANSFER flag before hanging up bleg to avoid race condition */
|
||||||
|
switch_channel_set_flag(channel, CF_TRANSFER);
|
||||||
|
|
||||||
/* If HANGUP_AFTER_BRIDGE is set to 'true', SWITCH_SIGNAL_BRIDGE_VARIABLE
|
/* If HANGUP_AFTER_BRIDGE is set to 'true', SWITCH_SIGNAL_BRIDGE_VARIABLE
|
||||||
* will not have a value, so we need to check SWITCH_BRIDGE_VARIABLE */
|
* will not have a value, so we need to check SWITCH_BRIDGE_VARIABLE */
|
||||||
|
|
||||||
@ -1725,7 +1728,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_transfer(switch_core_session_
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch_channel_set_caller_profile(channel, new_profile);
|
switch_channel_set_caller_profile(channel, new_profile);
|
||||||
switch_channel_set_flag(channel, CF_TRANSFER);
|
|
||||||
|
|
||||||
switch_channel_set_state(channel, CS_ROUTING);
|
switch_channel_set_state(channel, CS_ROUTING);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user