diff options
author | Olle Johansson <oej@edvina.net> | 2006-03-19 09:32:36 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2006-03-19 09:32:36 +0000 |
commit | 8bb397b439af71d9b270d37eb0e488dcd74777c8 (patch) | |
tree | 8ae5163c7dbcf771b94f2da48e43cb5d4b9b71ef /channels/chan_sip.c | |
parent | 7296dd030e807a434a14d66c35ad8fe3698c5b4f (diff) |
Import revision 13547 from branch 1.2 - reset global_rtautoclear at reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7214eeadd..d13fda4d0 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -391,7 +391,7 @@ static char default_musicclass[MAX_MUSICCLASS]; /*!< Global music on hold class static struct ast_codec_pref default_prefs; /*!< Default codec prefs */ /* Global settings only apply to the channel */ -static int global_rtautoclear = 120; +static int global_rtautoclear; static int global_notifyringing; /*!< Send notifications on ringing */ static int srvlookup; /*!< SRV Lookup on or off. Default is off, RFC behavior is on */ static int pedanticsipchecking; /*!< Extra checking ? Default off */ @@ -616,7 +616,6 @@ struct sip_auth { #define sipdebug_config ast_test_flag(&global_flags_page2, SIP_PAGE2_DEBUG_CONFIG) #define sipdebug_console ast_test_flag(&global_flags_page2, SIP_PAGE2_DEBUG_CONSOLE) - /*! \brief sip_pvt: PVT structures are used for each SIP dialog, ie. a call, a registration, a subscribe */ static struct sip_pvt { ast_mutex_t lock; /*!< Dialog private lock */ @@ -12453,6 +12452,7 @@ static int reload_config(enum channelreloadreason reason) global_rtptimeout = 0; global_rtpholdtimeout = 0; global_rtpkeepalive = 0; + global_rtautoclear = 120; ast_set_flag(&global_flags_page2, SIP_PAGE2_RTUPDATE); /* Initialize some reasonable defaults at SIP reload (used both for channel and as default for peers and users */ |