mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Add missing CEL logging fields to various CEL backends.
* Add missing eventextra to cel_psql.c and cel_odbc.c. * Add missing PeerAccount and EventExtra to cel_manager.c. * Add missing userdeftype support for cel_custom.conf.sample and cel_sqlite3_custom.conf.sample. (closes issue ASTERISK-17190) Reported by: Bryant Zimmerman git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@350555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										11
									
								
								main/cel.c
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								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); | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user