From 299dd5d4fc2f6617ee924112c1edf2cc071a160b Mon Sep 17 00:00:00 2001 From: Jonathan Rose Date: Mon, 27 Feb 2012 16:24:17 +0000 Subject: 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 --- channels/sip/include/sip.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'channels/sip') 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. */ -- cgit v1.2.3