mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
clear up some more display issues and fix resume-media-on-hold sofia option
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15177 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -506,13 +506,21 @@ SWITCH_DECLARE(switch_call_cause_t) switch_core_session_outgoing_channel(switch_
|
||||
}
|
||||
|
||||
if (switch_channel_test_flag(channel, CF_PROXY_MODE)) {
|
||||
switch_channel_set_flag(peer_channel, CF_PROXY_MODE);
|
||||
}
|
||||
|
||||
if (switch_channel_test_flag(channel, CF_PROXY_MEDIA)) {
|
||||
switch_channel_set_flag(peer_channel, CF_PROXY_MEDIA);
|
||||
if (switch_channel_test_flag(channel, CF_VIDEO)) {
|
||||
switch_channel_set_flag(peer_channel, CF_VIDEO);
|
||||
if (switch_channel_test_cap(peer_channel, CC_BYPASS_MEDIA)) {
|
||||
switch_channel_set_flag(peer_channel, CF_PROXY_MODE);
|
||||
|
||||
if (switch_channel_test_flag(channel, CF_PROXY_MEDIA)) {
|
||||
switch_channel_set_flag(peer_channel, CF_PROXY_MEDIA);
|
||||
if (switch_channel_test_flag(channel, CF_VIDEO)) {
|
||||
switch_channel_set_flag(peer_channel, CF_VIDEO);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING,
|
||||
"%s does not support the proxy feature, disabling.\n",
|
||||
switch_channel_get_name(peer_channel));
|
||||
switch_channel_clear_flag(channel, CF_PROXY_MODE);
|
||||
switch_channel_clear_flag(channel, CF_PROXY_MEDIA);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user