mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
Merge pull request #76 in FS/freeswitch from ~HRISTO/freeswitch:fix-ptime-on-reinvite-master to master
* commit 'fbe857e6fafabbca6a64584c51316ccc5e6ba96e': fix ptime from known broken endpoints on re-invite
This commit is contained in:
commit
56edfc7062
@ -3419,6 +3419,11 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
|
||||
|
||||
codec_ms = ptime;
|
||||
|
||||
if (switch_channel_get_variable(session->channel, "rtp_h_X-Broken-PTIME") && a_engine->read_impl.microseconds_per_packet) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Overwriting ptime from a known broken endpoint with the currently used value of %d ms\n", a_engine->read_impl.microseconds_per_packet / 1000);
|
||||
codec_ms = a_engine->read_impl.microseconds_per_packet / 1000;
|
||||
}
|
||||
|
||||
if (maxptime && (!codec_ms || codec_ms > maxptime)) {
|
||||
codec_ms = maxptime;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user