mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
FS-10222: [freeswitch-core] add disable_audio_jb_during_passthru and disable_video_jb_during_passthru #resolve
This commit is contained in:
parent
e1be97337d
commit
aaa26c6d09
@ -14182,11 +14182,16 @@ SWITCH_DECLARE(void) switch_core_session_passthru(switch_core_session_t *session
|
||||
|
||||
|
||||
if (switch_rtp_ready(engine->rtp_session)) {
|
||||
char var[50] = "";
|
||||
switch_snprintf(var, sizeof(var), "disable_%s_jb_during_passthru", type2str(type));
|
||||
|
||||
if (switch_channel_var_true(session->channel, var)) {
|
||||
if (on) {
|
||||
switch_rtp_set_flag(engine->rtp_session, SWITCH_RTP_FLAG_PASSTHRU);
|
||||
} else {
|
||||
switch_rtp_clear_flag(engine->rtp_session, SWITCH_RTP_FLAG_PASSTHRU);
|
||||
}
|
||||
}
|
||||
|
||||
if (type == SWITCH_MEDIA_TYPE_VIDEO) {
|
||||
switch_core_session_request_video_refresh(session);
|
||||
|
Loading…
x
Reference in New Issue
Block a user