]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
fix ptime from known broken endpoints on re-invite
authorHristo Trendev <htrendev@gmail.com>
Tue, 30 Sep 2014 09:11:27 +0000 (11:11 +0200)
committerHristo Trendev <htrendev@gmail.com>
Tue, 30 Sep 2014 09:19:35 +0000 (11:19 +0200)
commitfbe857e6fafabbca6a64584c51316ccc5e6ba96e
tree73099d21a9f76cbb59f5219028c392b3d6bb7e6e
parent310f18982fc471990c30abe60bee96c39ee92ad0
fix ptime from known broken endpoints on re-invite

Freeswitch tries to fix timing issues (wrong ptime) on re-invite the same way
it does for the initial invite. This results in small audio glitches, while it
sends a couple of packets with different ptime, before the timing detection
logic figures out the remote (broken) endpoint true ptime.

In order to avoid unnecessary timing changes, this patch overwrites the
advertised ptime from known broken endpoints with the ptime, which was detected
by freeswitch. It does this by checking if the sip_h_X-Broken-PTIME (1.2.x) or
rtp_h_X-Broken-PTIME (master) variables are set.

FS-6644 #resolve
src/switch_core_media.c