mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
[core, mod_verto] double udp buffer for audio, add verto command for video refresh
This commit is contained in:
parent
cf15e7ddd9
commit
8c351a4667
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user