[core, mod_verto] double udp buffer for audio, add verto command for video refresh

This commit is contained in:
Anthony Minessale authored and Andrey Volk committed 2021-10-23 22:01:00 +03:00
1 parent cf15e7ddd9
commit 8c351a4667
2 files changed
+12 -6

No files matched your search

+5 -2
View File
@@ -3323,8 +3323,11 @@ static switch_bool_t verto__modify_func(const char *method, cJSON *params, jsock
if ((session = switch_core_session_locate(call_id))) {
tech_pvt = switch_core_session_get_private_class(session, SWITCH_PVT_SECONDARY);
if (!strcasecmp(action, "updateMedia")) {
if (!strcasecmp(action, "videoRefresh")) {
switch_core_media_gen_key_frame(tech_pvt->session);
switch_channel_set_flag(tech_pvt->channel, CF_VIDEO_REFRESH_REQ);
} else if (!strcasecmp(action, "updateMedia")) {
const char *sdp = NULL;
uint8_t match = 0, p = 0;