FS-3634
This commit is contained in:
parent
5ee015610c
commit
f9064dec45
|
@ -1622,6 +1622,7 @@ SWITCH_DECLARE(void) switch_ivr_intercept_session(switch_core_session_t *session
|
||||||
if (!zstr(buuid)) {
|
if (!zstr(buuid)) {
|
||||||
if ((bsession = switch_core_session_locate(buuid))) {
|
if ((bsession = switch_core_session_locate(buuid))) {
|
||||||
bchannel = switch_core_session_get_channel(bsession);
|
bchannel = switch_core_session_get_channel(bsession);
|
||||||
|
switch_channel_set_flag(bchannel, CF_INTERCEPT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1636,7 +1637,6 @@ SWITCH_DECLARE(void) switch_ivr_intercept_session(switch_core_session_t *session
|
||||||
|
|
||||||
if (bchannel) {
|
if (bchannel) {
|
||||||
switch_channel_set_state_flag(bchannel, CF_TRANSFER);
|
switch_channel_set_state_flag(bchannel, CF_TRANSFER);
|
||||||
switch_channel_set_flag(bchannel, CF_INTERCEPT);
|
|
||||||
switch_channel_set_state(bchannel, CS_PARK);
|
switch_channel_set_state(bchannel, CS_PARK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue