From a7be2918ff3778d1742f12c6eb69e07e448d82a2 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 28 Jul 2020 02:40:48 +0000 Subject: [PATCH] [mod_verto] add reattach flag on reconnect to trigger mcu key frame --- src/mod/endpoints/mod_verto/mod_verto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 31b5dda71c..4e065b933d 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -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); } }