From: Olle Johansson Date: Mon, 9 Jan 2006 15:20:53 +0000 (+0000) Subject: -Move declaration of callevents variable out of the block of function declarations. X-Git-Tag: 1.4.0-beta1~3028 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e344385a2cb3789bb0c85b3fbb567dbe889b7f7;p=thirdparty%2Fasterisk.git -Move declaration of callevents variable out of the block of function declarations. -Do not set it to a default value, it's set later on before loading configuration. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7887 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a3ef560098..632b791071 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -883,6 +883,7 @@ static char externhost[MAXHOSTNAMELEN] = ""; static time_t externexpire = 0; static int externrefresh = 10; static struct ast_ha *localaddr; +static int callevents; /*!< Whether we send manager events or not */ /* The list of manual NOTIFY types we know how to send */ struct ast_config *notify_types; @@ -912,7 +913,6 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int static struct sip_user *build_user(const char *name, struct ast_variable *v, int realtime); static int sip_do_reload(void); static int expire_register(void *data); -static int callevents = 0; static struct ast_channel *sip_request_call(const char *type, int format, void *data, int *cause); static int sip_devicestate(void *data);