diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index fb5c26bd50..8f8c1ca926 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -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; diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 02b79362e7..1880bbb19c 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -2921,10 +2921,13 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s goto done; } - //if (rtp_session->flags[SWITCH_RTP_FLAG_VIDEO]) { - // switch_socket_opt_set(new_sock, SWITCH_SO_RCVBUF, 1572864); - // switch_socket_opt_set(new_sock, SWITCH_SO_SNDBUF, 1572864); - //} + if (rtp_session->flags[SWITCH_RTP_FLAG_VIDEO]) { + switch_socket_opt_set(new_sock, SWITCH_SO_RCVBUF, 1572864); + switch_socket_opt_set(new_sock, SWITCH_SO_SNDBUF, 1572864); + } else { + switch_socket_opt_set(new_sock, SWITCH_SO_RCVBUF, 851968); + switch_socket_opt_set(new_sock, SWITCH_SO_SNDBUF, 851968); + } if (switch_socket_bind(new_sock, rtp_session->local_addr) != SWITCH_STATUS_SUCCESS) { char *em = switch_core_sprintf(rtp_session->pool, "Bind Error! %s:%d", host, port);