]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Use session for retrieving CHANNEL() information. 74/4674/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:47:12 +0000 (05:47 -0600)
commitcedf8a21a18d09e9a18ea3921498fdb60e14c5d4
tree8e9e959934f196c4f68a62fb22996db62145a1bc
parent1aaa6305088c5b4a517130b9d49da4bdfec69575
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