summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2012-07-31 22:28:16 +0000
committerMark Michelson <mmichelson@digium.com>2012-07-31 22:28:16 +0000
commit4377d511ae88dded48929292042f45a8831d4120 (patch)
tree04324d38d9721f30bd3de8e1ba178650b126e25f /configs
parent58f281a67059c4348ac84544210f03a7527883d6 (diff)
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
Diffstat (limited to 'configs')
-rw-r--r--configs/sip.conf.sample8
1 files changed, 8 insertions, 0 deletions
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample
index c26e74104..d9ffb8578 100644
--- a/configs/sip.conf.sample
+++ b/configs/sip.conf.sample
@@ -502,6 +502,14 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
;use_q850_reason = no ; Default "no"
; Set to yes add Reason header and use Reason header if it is available.
+; When the Transfer() application sends a REFER SIP message, extra headers specified in
+; the dialplan by way of SIPAddHeader are sent out with that message. 1.8 and earlier did not
+; add the extra headers. To revert to 1.8- behavior, call SIPRemoveHeader with no arguments
+; before calling Transfer() to remove all additional headers from the channel. The setting
+; below is for transitional compatibility only.
+;
+;refer_addheaders=yes ; on by default
+
;autocreatepeers=no ; Allow any not exsplicitly defined here UAC to register
; WITHOUT AUTHENTICATION. Enabling this options poses a high
; potential security risk and should be avoided unless the