Add headers from SIPAddHeader to outbound REFER requests.
authorMark Michelson <mmichelson@digium.com>
Tue, 31 Jul 2012 22:28:16 +0000 (22:28 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 31 Jul 2012 22:28:16 +0000 (22:28 +0000)
commit4377d511ae88dded48929292042f45a8831d4120
tree04324d38d9721f30bd3de8e1ba178650b126e25f
parent58f281a67059c4348ac84544210f03a7527883d6
Add headers from SIPAddHeader to outbound REFER requests.

This is a patch from kkm from review board.

This is useful for adding headers to REFER requests that
emanate from a Transfer() dialplan application call.

This also fixes some uses of the Referred-by header, removing
an extra set of angle brackets.

I've modified the reporter's original patch to not require
any additions to the sip_refer header and to just remove the
referred_by_name from sip_refer since it is no longer needed
or used.

(closes Issue ASTERISK-17639)
reported by Kirill Katsnelson
Patches:
019059-sip-refer-addheaders-trunk-353549.diff
uploaded by Kirill Katsnelson (license #5845)

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
channels/chan_sip.c
channels/sip/include/sip.h
configs/sip.conf.sample