mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
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
This commit is contained in:
@@ -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. */
|
||||
|
Reference in New Issue
Block a user