mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 17:22:21 +00:00
FS-6911 #resolve
This commit is contained in:
parent
e166ff1c13
commit
9bd3bd30d3
@ -4084,7 +4084,7 @@ SWITCH_DECLARE(int) switch_core_media_toggle_hold(switch_core_session_t *session
|
|||||||
if (switch_channel_test_flag(session->channel, CF_PROTO_HOLD)) {
|
if (switch_channel_test_flag(session->channel, CF_PROTO_HOLD)) {
|
||||||
const char *val;
|
const char *val;
|
||||||
int media_on_hold_a = switch_true(switch_channel_get_variable_dup(session->channel, "bypass_media_resume_on_hold", SWITCH_FALSE, -1));
|
int media_on_hold_a = switch_true(switch_channel_get_variable_dup(session->channel, "bypass_media_resume_on_hold", SWITCH_FALSE, -1));
|
||||||
int media_on_hold_b = switch_true(switch_channel_get_variable_dup(b_channel, "bypass_media_resume_on_hold", SWITCH_FALSE, -1));
|
int media_on_hold_b = 0;
|
||||||
int bypass_after_hold_a = 0;
|
int bypass_after_hold_a = 0;
|
||||||
int bypass_after_hold_b = 0;
|
int bypass_after_hold_b = 0;
|
||||||
|
|
||||||
@ -4092,8 +4092,10 @@ SWITCH_DECLARE(int) switch_core_media_toggle_hold(switch_core_session_t *session
|
|||||||
bypass_after_hold_a = switch_true(switch_channel_get_variable_dup(session->channel, "bypass_media_after_hold", SWITCH_FALSE, -1));
|
bypass_after_hold_a = switch_true(switch_channel_get_variable_dup(session->channel, "bypass_media_after_hold", SWITCH_FALSE, -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (media_on_hold_b) {
|
if (b_channel) {
|
||||||
bypass_after_hold_b = switch_true(switch_channel_get_variable_dup(b_channel, "bypass_media_after_hold", SWITCH_FALSE, -1));
|
if ((media_on_hold_b = switch_true(switch_channel_get_variable_dup(b_channel, "bypass_media_resume_on_hold", SWITCH_FALSE, -1)))) {
|
||||||
|
bypass_after_hold_b = switch_true(switch_channel_get_variable_dup(b_channel, "bypass_media_after_hold", SWITCH_FALSE, -1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_yield(250000);
|
switch_yield(250000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user