]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Use session for retrieving CHANNEL() information. 71/4671/3
authorJoshua Colp <jcolp@digium.com>
Thu, 22 Dec 2016 22:00:58 +0000 (22:00 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 3 Jan 2017 11:46:25 +0000 (11:46 +0000)
commit34e728cfb9f175d85b463547ebf9977305b76c1b
tree16511708550569138c041f447436fa3874f80807
parente2fa3c7edabd52b62830a32930b0b4aaf4bcb9ac
chan_pjsip: Use session for retrieving CHANNEL() information.

The CHANNEL() dialplan function implementation for PJSIP allows
querying of PJSIP specific information. This used the channel
passed in to get the PJSIP session and associated information.
It is possible for this channel to be masqueraded and end
up as a different channel type by the time the information
request is actually acted upon.

This change retrieves the PJSIP session safely and accesses
data from it (including channel). This provides a guarantee
that the session and channel will not be altered when the
request is being acted upon.

ASTERISK-26673

Change-Id: I335e12b89e1820cafdd92b3e7526b8ba649eb7e6
channels/pjsip/dialplan_functions.c