From: Anthony Minessale Date: Sat, 18 Jul 2020 01:05:24 +0000 (+0000) Subject: [mod_verto] gen keyframe both ways on re-invite X-Git-Tag: v1.10.7^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dc234e1d48960cee086cd9d682f6cac4f3bc20e;p=thirdparty%2Ffreeswitch.git [mod_verto] gen keyframe both ways on re-invite --- diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 0b96e04b28..31b5dda71c 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -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;