]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] gen keyframe both ways on re-invite
authorAnthony Minessale <anthm@signalwire.com>
Sat, 18 Jul 2020 01:05:24 +0000 (01:05 +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 0b96e04b28743bafdde2cfc173d80fb5e63eb805..31b5dda71c58a7f1c26ad71008661c786b43f6b1 100644 (file)
@@ -3368,12 +3368,14 @@ static switch_bool_t verto__modify_func(const char *method, cJSON *params, jsock
                                cJSON_AddItemToObject(obj, "sdp", cJSON_CreateString(tech_pvt->mparams->local_sdp_str));
                                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "updateMedia: Local SDP %s:\n%s\n",
                                                                  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);
                        } else {
                                switch_channel_set_variable(tech_pvt->channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "CODEC NEGOTIATION ERROR");
                                cJSON_AddItemToObject(obj, "message", cJSON_CreateString("CODEC NEGOTIATION ERROR"));
                                err = 1; goto rwunlock;
                        }
-       
+                       
                } else if (!strcasecmp(action, "transfer")) {
                        switch_core_session_t *other_session = NULL;