]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_iax2: Fix jitterbuffer regression prior to receiving audio.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 14 Dec 2022 16:00:51 +0000 (16:00 +0000)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 28 Feb 2023 13:55:44 +0000 (07:55 -0600)
commit73103bdcd5b342ce5dfa32039333ffadad551151
tree57a9f1cc048de3fd91793e71a5ed07af4e43d126
parent2e95f4713a71a1f3090197c68ba6056afbe7b211
chan_iax2: Fix jitterbuffer regression prior to receiving audio.

ASTERISK_29392 (a security fix) introduced a regression by
not processing frames when we don't have an audio format.

Currently, chan_iax2 only calls jb_get to read frames from
the jitterbuffer when the voiceformat has been set on the pvt.
However, this only happens when we receive a voice frame, which
means that prior to receiving voice frames, other types of frames
get stalled completely in the jitterbuffer.

To fix this, we now fallback to using the format negotiated during
call setup until we've actually received a voice frame with a format.
This ensures we're always able to read from the jitterbuffer.

ASTERISK-30354 #close
ASTERISK-30162 #close

Change-Id: Ie4fd1e8e088a145ad89e0427c2100a530e964fe9
channels/chan_iax2.c