]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_refer: Add Referred-By header on INVITE for blind transfers.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 2 May 2014 16:33:59 +0000 (16:33 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 2 May 2014 16:33:59 +0000 (16:33 +0000)
commit44d19433d9e762bb9bab55738fdc5d7993a926b5
treeabcc79fef6b9f1ba811cd49dba68be4ee255eeb8
parent0531dd81d4e08c004873e94f7d4cdde9d163b9c8
res_pjsip_refer: Add Referred-By header on INVITE for blind transfers.

Per rfc3892, the Referred-By header in a REFER must be copied into the
referenced request (IE.  The outgoing INVITE to the transfer target).

* Automatically put the Referred-By header in the outgoing INVITE message
if the SIPREFERREDBYHDR channel variable is defined with a value.

* Made chan_sip.c:get_refer_info() set SIPREFERREDBYHDR for inheritance so
chan_pjsip has a better chance to interoperate.

* Fixed refer_blind_callback() and refer_incoming_refer_request() to not
modify the data in the pointer returned by pjsip_msg_find_hdr_by_name().
It seems wrong to modify that data since the calling routine doesn't own
the buffer.

ASTERISK-23501 #close
Reported by: John Bigelow

Review: https://reviewboard.asterisk.org/r/3514/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@413210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
UPGRADE.txt
channels/chan_sip.c
res/res_pjsip_refer.c