mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 17:22:21 +00:00
FS-9002 #resolve [rtp timeout code is parsed on video but its designed for audio]
This commit is contained in:
parent
94d2018991
commit
ad5e6aff1e
@ -2215,6 +2215,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_read_frame(switch_core_session
|
||||
}
|
||||
}
|
||||
|
||||
if (type == SWITCH_MEDIA_TYPE_AUDIO && engine->read_impl.samples_per_second) {
|
||||
if ((val = switch_channel_get_variable(session->channel, "rtp_timeout_sec"))) {
|
||||
int v = atoi(val);
|
||||
if (v >= 0) {
|
||||
@ -2244,6 +2245,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_read_frame(switch_core_session
|
||||
engine->read_impl.samples_per_packet;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
check_jb(session, NULL, 0, 0, SWITCH_FALSE);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user