asterisk/channels
Naveen Albert 6aa28346cf 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
2023-02-28 07:44:25 -06:00
..
dahdi channels: Fix for Doxygen. 2021-11-19 09:09:45 -06:00
iax2 general: Fix various typos. 2022-07-12 07:45:19 -05:00
misdn progdocs: Fix for Doxygen, the hidden parts. 2021-12-02 10:38:23 -06:00
pjsip res_rtp_asterisk: Asterisk Media Experience Score (MES) 2023-01-09 10:37:56 -07:00
sip chan_sip: Fix crash when accessing RURI before initiating outgoing call 2021-12-13 13:40:14 -06:00
Makefile core: Improve MALLOC_DEBUG for frames. 2019-11-08 10:20:13 -05:00
chan_alsa.c policy: Add deprecation and removal versions to modules. 2021-08-16 11:48:10 -05:00
chan_audiosocket.c Compiler fixes for GCC with -Og 2020-11-03 17:07:42 -06:00
chan_bridge_media.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
chan_console.c channels: Fix for Doxygen. 2021-11-19 09:09:45 -06:00
chan_dahdi.c chan_dahdi: Fix unavailable channels returning busy. 2022-10-26 10:55:36 -05:00
chan_dahdi.h sig_analog: Changes to improve electromechanical signalling compatibility 2021-08-20 15:30:55 -05:00
chan_iax2.c chan_iax2: Fix jitterbuffer regression prior to receiving audio. 2023-02-28 07:44:25 -06:00
chan_mgcp.c utils.c: Remove all usages of ast_gethostbyname() 2022-01-06 14:07:05 -06:00
chan_misdn.c chan_misdn: Fix for Doxygen. 2021-11-29 09:04:26 -06:00
chan_motif.c channels: Fix for Doxygen. 2021-11-19 09:09:45 -06:00
chan_nbs.c policy: Add deprecation and removal versions to modules. 2021-08-16 11:48:10 -05:00
chan_oss.c policy: Add deprecation and removal versions to modules. 2021-08-16 11:48:10 -05:00
chan_phone.c policy: Add deprecation and removal versions to modules. 2021-08-16 11:48:10 -05:00
chan_phone.h Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
chan_pjsip.c res_pjsip_rfc3326: Add SIP causes support for RFC3326 2023-01-10 13:31:32 -06:00
chan_rtp.c chan_rtp: Make usage of ast_rtp_instance_get_local_address clearer 2022-11-02 07:36:10 -06:00
chan_sip.c GCC12: Fixes for 16+ 2022-05-09 08:21:58 -05:00
chan_skinny.c utils.c: Remove all usages of ast_gethostbyname() 2022-01-06 14:07:05 -06:00
chan_unistim.c utils.c: Remove all usages of ast_gethostbyname() 2022-01-06 14:07:05 -06:00
chan_vpb.cc policy: Add deprecation and removal versions to modules. 2021-08-16 11:48:10 -05:00
console_board.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
console_gui.c channels: Spelling fixes 2021-11-16 05:37:45 -06:00
console_video.c channels: Spelling fixes 2021-11-16 05:37:45 -06:00
console_video.h Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
misdn_config.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
sig_analog.c sig_analog: Fix no timeout duration. 2022-12-08 10:12:13 -06:00
sig_analog.h general: Fix various typos. 2022-07-12 07:45:19 -05:00
sig_pri.c progdocs: Fix for Doxygen, the hidden parts. 2021-12-02 10:38:23 -06:00
sig_pri.h progdocs: Fix for Doxygen, the hidden parts. 2021-12-02 10:38:23 -06:00
sig_ss7.c progdocs: Fix for Doxygen, the hidden parts. 2021-12-02 10:38:23 -06:00
sig_ss7.h channels: Spelling fixes 2021-11-16 05:37:45 -06:00
vcodecs.c channels: Spelling fixes 2021-11-16 05:37:45 -06:00
vgrabbers.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00