diff options
Diffstat (limited to 'main/cel.c')
-rw-r--r-- | main/cel.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/main/cel.c b/main/cel.c index 2c46e5f55..534faed50 100644 --- a/main/cel.c +++ b/main/cel.c @@ -47,7 +47,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") static unsigned char cel_enabled; /*! \brief CEL is off by default */ -static const unsigned char CEL_ENALBED_DEFAULT = 0; +#define CEL_ENABLED_DEFAULT 0 /*! * \brief which events we want to track @@ -65,12 +65,12 @@ static int64_t eventset; /*! * \brief Track no events by default. */ -static const int64_t CEL_DEFAULT_EVENTS = 0; +#define CEL_DEFAULT_EVENTS 0 /*! * \brief Number of buckets for the appset container */ -static const int NUM_APP_BUCKETS = 97; +#define NUM_APP_BUCKETS 97 /*! * \brief Container of Asterisk application names @@ -298,7 +298,7 @@ static int do_reload(void) ast_mutex_lock(&reload_lock); /* Reset all settings before reloading configuration */ - cel_enabled = CEL_ENALBED_DEFAULT; + cel_enabled = CEL_ENABLED_DEFAULT; eventset = CEL_DEFAULT_EVENTS; *cel_dateformat = '\0'; ao2_callback(appset, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL); @@ -439,6 +439,9 @@ struct ast_channel *ast_cel_fabricate_channel_from_event(const struct ast_event AST_LIST_INSERT_HEAD(headp, newvariable, entries); } + if ((newvariable = ast_var_assign("userdeftype", record.user_defined_name))) { + AST_LIST_INSERT_HEAD(headp, newvariable, entries); + } if ((newvariable = ast_var_assign("eventextra", record.extra))) { AST_LIST_INSERT_HEAD(headp, newvariable, entries); } |