asterisk/channels/pjsip
Joshua Colp 12460b05c1 chan_pjsip: Don't assume a session will have a channel.
When querying for PJSIP specific information using the dialplan
function CHANNEL() it is possible that the underlying session
will no longer have a channel associated with it. This is
most likely to occur when the RTCP HEP module attempts to get
the channel name. If this happens then a crash will occur.

This change just adds a check that the channel exists on the
session before querying it.

ASTERISK-26857

Change-Id: I113479cffff6ae64cf8ed089e9e1565223426f01
2017-03-13 12:37:55 -06:00
..
include channels/chan_pjsip: Add PJSIP_SEND_SESSION_REFRESH 2016-08-10 11:30:01 -05:00
cli_commands.c pjsip/cli_commands: pjsip show channelstats shows wrong codec 2017-03-09 15:45:48 -06:00
dialplan_functions.c chan_pjsip: Don't assume a session will have a channel. 2017-03-13 12:37:55 -06:00