]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
use DEFAULT_STORE_SIP_CAUSE to set the default value for the 'storesipcause' option
authorMatthew Nicholson <mnicholson@digium.com>
Tue, 16 Aug 2011 15:06:31 +0000 (15:06 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Tue, 16 Aug 2011 15:06:31 +0000 (15:06 +0000)
AST-580

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@332026 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c
channels/sip/include/sip.h

index 8f43c90dab9dd44bcabc2dd8a986ade28f44028e..fbc6f4b050642f62b2d4bd355af92a4839ea7c7c 100644 (file)
@@ -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;
 
index 3eba19538f1a30f4f95c4d177f934f3190337182..8ffcfbb415d245d95da37ee38d9aad1de3beb1ed 100644 (file)
 #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,<channel name>) for channels by default */
 #endif
 /*@}*/