<p>Joshua Colp <strong>uploaded patch set #7</strong> to the change originally created by Kirill Katsnelson.</p><p><a href="https://gerrit.asterisk.org/6118">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_sip: Access incoming REFER headers in dialplan<br><br>This adds a way to access information passed along with SIP headers in<br>a REFER message that initiates a transfer. Headers matching a dialplan<br>variable GET_TRANSFERRER_DATA in the transferrer channel are added to<br>a HASH object TRANSFER_DATA to be accessed with functions HASHKEY and HASH.<br><br>The variable GET_TRANSFERRER_DATA is interpreted to be a prefix for<br>headers that should be put into the hash. If not set, no headers are<br>included. If set to a string (perhaps 'X-' in a typical case), all headers<br>starting this string are added. Empty string matches all headers.<br><br>If there are multiple of the same header, only the latest occurrence in<br>the REFER message is available in the hash.<br><br>Obviously, the variable GET_TRANSFERRER_DATA must be inherited by the<br>referrer channel, and should be set with the '_' or '__' prefix.<br><br>I avoided a specific reference to SIP or REFER, as in my mind the mechanism<br>can be generalized to other channel techs.<br><br>ASTERISK-27162<br><br>Change-Id: I73d7a1e95981693bc59aa0d5093c074b555f708e<br>---<br>M CHANGES<br>M channels/chan_sip.c<br>2 files changed, 49 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/18/6118/7</pre><p>To view, visit <a href="https://gerrit.asterisk.org/6118">change 6118</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6118"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I73d7a1e95981693bc59aa0d5093c074b555f708e </div>
<div style="display:none"> Gerrit-Change-Number: 6118 </div>
<div style="display:none"> Gerrit-PatchSet: 7 </div>
<div style="display:none"> Gerrit-Owner: Kirill Katsnelson <kkm@smartaction.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kirill Katsnelson <kkm@smartaction.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>