summaryrefslogtreecommitdiff
path: root/channels/sip
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2012-02-27 16:24:17 +0000
committerJonathan Rose <jrose@digium.com>2012-02-27 16:24:17 +0000
commit299dd5d4fc2f6617ee924112c1edf2cc071a160b (patch)
tree5913b25cb36aa7ca552c8534f540982e243cf917 /channels/sip
parent9ed6de9fd254d4b51c493a8841fa1368ea4c0949 (diff)
Adds an option to sip.conf that prevents diversion headers from being added.
send_diversion=no will prevent Diversion headers from being added to SIP requests. This doesn't prevent Diversion from being added with dialplan such as with SIPAddHeader. (closes issue ASTERISK-16862) Reported by: rsw686 Review: https://reviewboard.asterisk.org/r/1769/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sip')
-rw-r--r--channels/sip/include/sip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/sip/include/sip.h b/channels/sip/include/sip.h
index 2f9beff84..d9f99d652 100644
--- a/channels/sip/include/sip.h
+++ b/channels/sip/include/sip.h
@@ -219,6 +219,7 @@
#define DEFAULT_ACCEPT_OUTOFCALL_MESSAGE TRUE
#define DEFAULT_REGEXTENONQUALIFY FALSE
#define DEFAULT_LEGACY_USEROPTION_PARSING FALSE
+#define DEFAULT_SEND_DIVERSION TRUE
#define DEFAULT_T1MIN 100 /*!< 100 MS for minimal roundtrip time */
#define DEFAULT_MAX_CALL_BITRATE (384) /*!< Max bitrate for video */
#ifndef DEFAULT_USERAGENT
@@ -733,6 +734,7 @@ struct sip_settings {
int callevents; /*!< Whether we send manager events or not */
int regextenonqualify; /*!< Whether to add/remove regexten when qualifying peers */
int legacy_useroption_parsing; /*!< Whether to strip useroptions in URI via semicolons */
+ int send_diversion; /*!< Whether to Send SIP Diversion headers */
int matchexternaddrlocally; /*!< Match externaddr/externhost setting against localnet setting */
char regcontext[AST_MAX_CONTEXT]; /*!< Context for auto-extensions */
char messagecontext[AST_MAX_CONTEXT]; /*!< Default context for out of dialog msgs. */