]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8556 #resolve [Screen shares are not recoverable so do not try]
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Nov 2015 21:26:26 +0000 (15:26 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Nov 2015 21:26:26 +0000 (15:26 -0600)
src/mod/endpoints/mod_verto/mod_verto.c

index 701579a4b55c6ed714157f6408ce8648b6797019..66cc242ae86635a44a44d098bdb0b357d8f8d270 100644 (file)
@@ -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");