Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 178702) +++ channels/chan_sip.c (working copy) @@ -19692,6 +19692,8 @@ /* Attended transfer to remote host, prepare headers for the INVITE */ if (p->refer->referred_by) pbx_builtin_setvar_helper(current.chan2, "_SIPTRANSFER_REFERER", p->refer->referred_by); + pbx_builtin_setvar_helper(current.chan2, "SIPTRANSFERER_PEERNAME", p->peername); + pbx_builtin_setvar_helper(current.chan2, "SIPTRANSFERER_USERNAME", p->username); } /* Generate a Replaces string to be used in the INVITE during attended transfer */ if (!ast_strlen_zero(p->refer->replaces_callid)) { Index: doc/tex/channelvariables.tex =================================================================== --- doc/tex/channelvariables.tex (revision 178702) +++ doc/tex/channelvariables.tex (working copy) @@ -927,6 +927,10 @@ ${SIPURI} * SIP uri ${SIP_CODEC} Set the SIP codec for a call ${SIP_URI_OPTIONS} * additional options to add to the URI for an outgoing call +${SIPTRANSFERER_PEERNAME} * Name of the SIP "peer" which initiated the blind + transfer, that is the party which sent the REFER. +${SIPTRANSFERER_USERNAME} * Name of the SIP "user" which initiated the blind + transfer, that is the party which sent the REFER. ${RTPAUDIOQOS} RTCP QoS report for the audio of this call ${RTPVIDEOQOS} RTCP QoS report for the video of this call \end{verbatim}