System information
cel.conf, which were described in the previous section, these modules require configu-
ration to make them operate.
cel_odbc
The cel_odbc.so module provides the ability to log CEL events to a database using
ODBC. This module is not quite as adaptive as the CDR adaptive ODBC backend. For
CEL events, there are no custom variables. However, this module will still adapt to the
structure of the database, in that it will log the fields of CEL events for which there are
corresponding columns and will not produce an error if there is not a column for every
field. The configuration for this module goes in /etc/asterisk/cel_odbc.conf.
Multiple tables may be configured in the cel_odbc configuration file. Each goes into its
own configuration section. The name of the section can be anything; the module does
not use it. Here is an example of a simple table configuration:
[mytable]
connection = asterisk
table = asterisk_cel
The cel_odbc module will use the following columns, if they exist (see the table fol-
lowing this list for a set of mappings between event types and their integer value that
will be inserted into the database):
• eventtype
• eventtime
• userdeftype
• cid_name
• cid_num
• cid_ani
• cid_rdnis
• cid_dnid
• exten
• context
• channame
• appname
• appdata
• accountcode
• peeraccount
• uniqueid
• linkedid
• amaflags
CEL (Channel Event Logging) | 541