]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Use session for retrieving CHANNEL() information. 72/4672/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:58 +0000 (05:46 -0600)
commite40016e39fd5fa07f7466148fc49274fcff5bb41
treefbc013d81f23944f1e21d3e33937afe816815155
parent4ecc3de00e4105d1f2a2cd1344023988a61268ae
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