From 9ab210e64b0a12c16743d507e2155e42c9fadade Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 18 Nov 2015 15:26:26 -0600 Subject: [PATCH] FS-8556 #resolve [Screen shares are not recoverable so do not try] --- src/mod/endpoints/mod_verto/mod_verto.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 701579a4b5..66cc242ae8 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -1234,6 +1234,12 @@ static void detach_calls(jsock_t *jsock) switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER); 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); tech_pvt->detach_time = switch_epoch_time_now(NULL); 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; 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); profile_name = switch_channel_get_variable(channel, "verto_profile_name");