diff options
author | Olle Johansson <oej@edvina.net> | 2009-09-07 16:35:12 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2009-09-07 16:35:12 +0000 |
commit | 42a4b058118deee19d452f80260bd8331346e306 (patch) | |
tree | 9959c1d0b1c561e6af8b081d15a49d404c1ce152 | |
parent | b890815521246863f0b089ff04a5645c1217ce33 (diff) |
Make sure we reset global_exclude_static at channel reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@216842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 46bc270bd..3c1e119bf 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1244,9 +1244,9 @@ static enum st_refresher global_st_refresher; /*!< Session-Timer refresher static int global_min_se; /*!< Lowest threshold for session refresh interval */ static int global_max_se; /*!< Highest threshold for session refresh interval */ +static int global_dynamic_exclude_static = 0; /*!< Exclude static peers from contact registrations */ /*@}*/ -static int global_dynamic_exclude_static = 0; /*! \name Object counters @{ * \bug These counters are not handled in a thread-safe way ast_atomic_fetchadd_int() @@ -24841,6 +24841,7 @@ static int reload_config(enum channelreloadreason reason) ast_set_flag(&global_flags[1], SIP_PAGE2_ALLOWSUBSCRIBE); /* Default for all devices: TRUE */ ast_set_flag(&global_flags[1], SIP_PAGE2_ALLOWOVERLAP); /* Default for all devices: TRUE */ sip_cfg.peer_rtupdate = TRUE; + global_dynamic_exclude_static = 0; /* Exclude static peers */ /* Session-Timers */ global_st_mode = SESSION_TIMER_MODE_ACCEPT; |