mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-29 18:11:33 +00:00
FS-3727 --resolve
This commit is contained in:
parent
eef4bb03d3
commit
f41020a625
@ -1180,8 +1180,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses
|
|||||||
const char *app, *data;
|
const char *app, *data;
|
||||||
|
|
||||||
if (switch_channel_get_state(peer_channel) == CS_CONSUME_MEDIA) {
|
if (switch_channel_get_state(peer_channel) == CS_CONSUME_MEDIA) {
|
||||||
switch_channel_set_state(peer_channel, CS_RESET);
|
switch_channel_set_state(peer_channel, CS_HIBERNATE);
|
||||||
switch_channel_wait_for_state(peer_channel, caller_channel, CS_RESET);
|
switch_channel_wait_for_state(peer_channel, caller_channel, CS_HIBERNATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!switch_channel_ready(caller_channel)) {
|
if (!switch_channel_ready(caller_channel)) {
|
||||||
|
@ -3511,8 +3511,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||||||
switch_channel_t *bchan = switch_core_session_get_channel(*bleg);
|
switch_channel_t *bchan = switch_core_session_get_channel(*bleg);
|
||||||
|
|
||||||
if (switch_channel_get_state(bchan) == CS_CONSUME_MEDIA) {
|
if (switch_channel_get_state(bchan) == CS_CONSUME_MEDIA) {
|
||||||
switch_channel_set_state(bchan, CS_RESET);
|
switch_channel_set_state(bchan, CS_HIBERNATE);
|
||||||
switch_channel_wait_for_state(bchan, caller_channel, CS_RESET);
|
switch_channel_wait_for_state(bchan, caller_channel, CS_HIBERNATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (session && caller_channel) {
|
if (session && caller_channel) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user