summaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorkkm <kkm@smartaction.com>2017-07-29 18:03:02 -0700
committerJoshua Colp <jcolp@digium.com>2017-08-07 11:17:39 +0000
commit4b58609c331c013845a0a61d946cbbc82092170e (patch)
treec793b39e5dd2ce12f4826a97f767708860d3ff45 /CHANGES
parent2ba29df200f924f34d47371b83d0371c824bc76c (diff)
chan_sip: Access incoming REFER headers in dialplan
This adds a way to access information passed along with SIP headers in a REFER message that initiates a transfer. Headers matching a dialplan variable GET_TRANSFERRER_DATA in the transferrer channel are added to a HASH object TRANSFER_DATA to be accessed with functions HASHKEY and HASH. The variable GET_TRANSFERRER_DATA is interpreted to be a prefix for headers that should be put into the hash. If not set, no headers are included. If set to a string (perhaps 'X-' in a typical case), all headers starting this string are added. Empty string matches all headers. If there are multiple of the same header, only the latest occurrence in the REFER message is available in the hash. Obviously, the variable GET_TRANSFERRER_DATA must be inherited by the referrer channel, and should be set with the '_' or '__' prefix. I avoided a specific reference to SIP or REFER, as in my mind the mechanism can be generalized to other channel techs. ASTERISK-27162 Change-Id: I73d7a1e95981693bc59aa0d5093c074b555f708e
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES4
1 files changed, 4 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 4f5225ac1..67d33c95b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -16,6 +16,10 @@ chan_sip
------------------
* New function SIP_HEADERS() enumerates all headers in the incoming INVITE.
+ * The variable GET_TRANSFERRER_DATA set in the peer channel causes matching
+ headers be retrieved from the REFER message and made accessible to the
+ dialplan in the hash TRANSFER_DATA.
+
------------------------------------------------------------------------------
--- Functionality changes from Asterisk 14 to Asterisk 15 --------------------
------------------------------------------------------------------------------