asterisk/channels/pjsip
George Joseph 3ca2bb5e84 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 adcfbcd50e)
2024-03-07 14:18:41 +00:00
..
include chan_pjsip: Add PJSIPHangup dialplan app and manager action 2024-01-12 18:32:13 +00:00
cli_commands.c pjsip show channelstats: Prevent possible segfault when faxing 2024-03-07 14:18:41 +00:00
dialplan_functions.c chan_pjsip: Add PJSIPHangup dialplan app and manager action 2024-01-12 18:32:13 +00:00
dialplan_functions_doc.xml logger: Fix linking regression. 2024-01-17 14:55:27 -07:00