mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 01:02:12 +00:00
FS-8556 #resolve [Screen shares are not recoverable so do not try]
This commit is contained in:
parent
ae05a19edf
commit
9ab210e64b
@ -1234,6 +1234,12 @@ static void detach_calls(jsock_t *jsock)
|
|||||||
switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
|
switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (switch_channel_test_flag(tech_pvt->channel, CF_VIDEO_ONLY)) {
|
||||||
|
switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_NORMAL_CLEARING);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
switch_core_session_stop_media(tech_pvt->session);
|
switch_core_session_stop_media(tech_pvt->session);
|
||||||
tech_pvt->detach_time = switch_epoch_time_now(NULL);
|
tech_pvt->detach_time = switch_epoch_time_now(NULL);
|
||||||
globals.detached++;
|
globals.detached++;
|
||||||
@ -2549,6 +2555,10 @@ static int verto_recover_callback(switch_core_session_t *session)
|
|||||||
const char *profile_name = NULL, *jsock_uuid_str = NULL;
|
const char *profile_name = NULL, *jsock_uuid_str = NULL;
|
||||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||||
|
|
||||||
|
if (switch_channel_test_flag(channel, CF_VIDEO_ONLY)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
PROTECT_INTERFACE(verto_endpoint_interface);
|
PROTECT_INTERFACE(verto_endpoint_interface);
|
||||||
|
|
||||||
profile_name = switch_channel_get_variable(channel, "verto_profile_name");
|
profile_name = switch_channel_get_variable(channel, "verto_profile_name");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user