]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] add reattach flag on reconnect to trigger mcu key frame
authorAnthony Minessale <anthm@signalwire.com>
Tue, 28 Jul 2020 02:40:48 +0000 (02:40 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:59 +0000 (22:00 +0300)
src/mod/endpoints/mod_verto/mod_verto.c

index 31b5dda71c58a7f1c26ad71008661c786b43f6b1..4e065b933dd8ee9cbc48ffd6be6300a82708306e 100644 (file)
@@ -3370,6 +3370,7 @@ static switch_bool_t verto__modify_func(const char *method, cJSON *params, jsock
                                                                  switch_channel_get_name(tech_pvt->channel), tech_pvt->mparams->local_sdp_str);
                                switch_core_media_gen_key_frame(tech_pvt->session);
                                switch_channel_set_flag(tech_pvt->channel, CF_VIDEO_REFRESH_REQ);
+                               switch_channel_set_flag(tech_pvt->channel, CF_REATTACHED);
                        } else {
                                switch_channel_set_variable(tech_pvt->channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "CODEC NEGOTIATION ERROR");
                                cJSON_AddItemToObject(obj, "message", cJSON_CreateString("CODEC NEGOTIATION ERROR"));
@@ -3549,6 +3550,7 @@ static switch_bool_t verto__attach_func(const char *method, cJSON *params, jsock
                } else {
                        switch_core_media_gen_key_frame(tech_pvt->session);
                        switch_channel_set_flag(tech_pvt->channel, CF_VIDEO_REFRESH_REQ);
+                       switch_channel_set_flag(tech_pvt->channel, CF_REATTACHED);
                }
        }