asterisk/channels
George Joseph f770c9c92c pjsip show channelstats: Prevent possible segfault when faxing
Under rare circumstances, it's possible for the original audio
session in the active_media_state default_session to be corrupted
instead of removed when switching to the t38/image media session
during fax negotiation.  This can cause a segfault when a "pjsip
show channelstats" attempts to print that audio media session's
rtp statistics.  In these cases, the active_media_state
topology is correctly showing only a single t38/image stream
so we now check that there's an audio stream in the topology
before attempting to use the audio media session to get the rtp
statistics.

Resolves: #592
(cherry picked from commit cb057a6381)
2024-03-07 14:17:23 +00:00
..
dahdi channels: Fix for Doxygen. 2021-11-19 09:02:06 -06:00
iax2 chan_iax2.c: Don't send unsanitized data to the logger. 2024-01-12 18:29:19 +00:00
pjsip pjsip show channelstats: Prevent possible segfault when faxing 2024-03-07 14:17:23 +00:00
sip chan_sip: Fix crash when accessing RURI before initiating outgoing call 2021-12-13 13:39:26 -06:00
Makefile build: Remove obsolete leftover build references. 2022-03-30 17:10:51 -05:00
chan_alsa.c chan_alsa, chan_sip: Add replacement to moduleinfo 2021-08-19 07:58:39 -05:00
chan_audiosocket.c Compiler fixes for GCC with -Og 2020-11-03 17:08:07 -06:00
chan_bridge_media.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
chan_console.c chan_console: Fix deadlock caused by unclean thread exit. 2024-01-12 18:29:18 +00:00
chan_dahdi.c chan_dahdi: Allow MWI to be manually toggled on channels. 2024-03-07 14:17:22 +00:00
chan_dahdi.h chan_dahdi: Allow MWI to be manually toggled on channels. 2024-03-07 14:17:22 +00:00
chan_iax2.c chan_iax2: Improve authentication debugging. 2024-01-12 18:29:18 +00:00
chan_mgcp.c utils.c: Remove all usages of ast_gethostbyname() 2022-01-06 09:45:56 -06:00
chan_motif.c channels: Fix for Doxygen. 2021-11-19 09:02:06 -06:00
chan_pjsip.c chan_pjsip: Add PJSIPHangup dialplan app and manager action 2024-01-12 18:29:19 +00:00
chan_rtp.c chan_rtp.c: MulticastRTP missing refcount without codec option 2024-03-07 14:17:22 +00:00
chan_sip.c GCC12: Fixes for 16+ 2022-05-09 08:21:45 -05:00
chan_skinny.c utils.c: Remove all usages of ast_gethostbyname() 2022-01-06 09:45:56 -06:00
chan_unistim.c utils.c: Remove all usages of ast_gethostbyname() 2022-01-06 09:45:56 -06: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:35:29 -06:00
console_video.c channels: Spelling fixes 2021-11-16 05:35:29 -06:00
console_video.h Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
sig_analog.c sig_analog: Fix channel leak when mwimonitor is enabled. 2024-01-12 18:29:19 +00:00
sig_analog.h sig_analog: Add Called Subscriber Held capability. 2023-09-06 16:56:00 +00:00
sig_pri.c progdocs: Fix for Doxygen, the hidden parts. 2021-12-02 10:37:38 -06:00
sig_pri.h progdocs: Fix for Doxygen, the hidden parts. 2021-12-02 10:37:38 -06:00
sig_ss7.c progdocs: Fix for Doxygen, the hidden parts. 2021-12-02 10:37:38 -06:00
sig_ss7.h channels: Spelling fixes 2021-11-16 05:35:29 -06:00
vcodecs.c channels: Spelling fixes 2021-11-16 05:35:29 -06:00
vgrabbers.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00