From: Matthew Nicholson Date: Tue, 16 Aug 2011 15:06:31 +0000 (+0000) Subject: use DEFAULT_STORE_SIP_CAUSE to set the default value for the 'storesipcause' option X-Git-Tag: 1.8.7.0-rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d709a2b552e1a8e0969cf077e0a4bb33121f814;p=thirdparty%2Fasterisk.git use DEFAULT_STORE_SIP_CAUSE to set the default value for the 'storesipcause' option AST-580 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@332026 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8f43c90dab..fbc6f4b050 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -27405,7 +27405,7 @@ static int reload_config(enum channelreloadreason reason) global_shrinkcallerid = 1; authlimit = DEFAULT_AUTHLIMIT; authtimeout = DEFAULT_AUTHTIMEOUT; - global_store_sip_cause = TRUE; + global_store_sip_cause = DEFAULT_STORE_SIP_CAUSE; sip_cfg.matchexternaddrlocally = DEFAULT_MATCHEXTERNADDRLOCALLY; diff --git a/channels/sip/include/sip.h b/channels/sip/include/sip.h index 3eba19538f..8ffcfbb415 100644 --- a/channels/sip/include/sip.h +++ b/channels/sip/include/sip.h @@ -221,6 +221,7 @@ #define DEFAULT_SDPOWNER "root" /*!< Default SDP username field in (o=) header unless re-defined in sip.conf */ #define DEFAULT_ENGINE "asterisk" /*!< Default RTP engine to use for sessions */ #define DEFAULT_CAPABILITY (AST_FORMAT_ULAW | AST_FORMAT_TESTLAW | AST_FORMAT_ALAW | AST_FORMAT_GSM | AST_FORMAT_H263); +#define DEFAULT_STORE_SIP_CAUSE TRUE /*!< Store HASH(SIP_CAUSE,) for channels by default */ #endif /*@}*/