Debian Codegraph @

configs/samples/cel_odbc.conf.sample

raw
1 ;
2 ; Asterisk Channel Event Logging (CEL) - Adaptive ODBC Backend
3 ;
4
5 ; General module options category.
6 [general]
7 ; Use 'show_user_defined' to put "USER_DEFINED" in the eventtype field,
8 ; instead of (by default) just putting the user defined event name there.
9 ;
10 ;show_user_defined=yes
11
12 ; This configuration defines the connections and tables for which CEL records
13 ; may be populated. Each context specifies a different CEL table to be used.
14 ;
15 ; The columns in the tables should match up word-for-word (case-insensitive) to
16 ; the CEL variables set in the dialplan. The natural advantage to this system
17 ; is that beyond setting up the configuration file to tell you what tables to
18 ; look at, there isn't anything more to do beyond creating the columns for the
19 ; fields that you want, and populating the corresponding CEL variables in the
20 ; dialplan.
21 ;
22 ; Please note that after adding columns to the database, it is necessary to
23 ; reload this module to get the new column names and types read.
24 ;
25 ; Warning: if you specify two contexts with exactly the same connection and
26 ; table names, you will get duplicate records in that table. So be careful.
27 ;
28 ; CEL FIELDS:
29 ; eventtype
30 ; CHANNEL_START = 1
31 ; CHANNEL_END = 2
32 ; HANGUP = 3
33 ; ANSWER = 4
34 ; APP_START = 5
35 ; APP_END = 6
36 ; BRIDGE_START = 7
37 ; BRIDGE_END = 8
38 ; CONF_START = 9
39 ; CONF_END = 10
40 ; PARK_START = 11
41 ; PARK_END = 12
42 ; BLINDTRANSFER = 13
43 ; ATTENDEDTRANSFER = 14
44 ; TRANSFER = 15
45 ; HOOKFLASH = 16
46 ; 3WAY_START = 17
47 ; 3WAY_END = 18
48 ; CONF_ENTER = 19
49 ; CONF_EXIT = 20
50 ; USER_DEFINED = 21
51 ; LINKEDID_END = 22
52 ; BRIDGE_UPDATE = 23
53 ; PICKUP = 24
54 ; FORWARD = 25
55 ; eventtime (timeval, includes microseconds)
56 ; userdeftype (set only if eventtype == USER_DEFINED)
57 ; cid_name
58 ; cid_num
59 ; cid_ani
60 ; cid_rdnis
61 ; cid_dnid
62 ; exten
63 ; context
64 ; channame
65 ; appname
66 ; appdata
67 ; accountcode
68 ; peeraccount
69 ; uniqueid
70 ; linkedid
71 ; amaflags (an int)
72 ; userfield
73 ; peer
74 ; extra
75
76 ; The point of this module is to allow you log whatever you like in terms of the
77 ; CEL variables. Do you want to log uniqueid? Then simply ensure that your
78 ; table has that column. If you don't want the column, ensure that it does not
79 ; exist in the table structure. If you'd like to call uniqueid something else
80 ; in your table, simply provide an alias in this file that maps the standard CEL
81 ; field name (uniqueid) to whatever column name you like.
82
83 ;[first]
84 ;connection=mysql1
85 ;table=cel
86
87 ;[second]
88 ;connection=mysql1
89 ;table=extracel
90
91 ;[third]
92 ;connection=sqlserver
93 ;table=AsteriskCEL
94 ;usegmtime=yes ; defaults to no
95 ;allowleapsecond=no ; allow leap second in SQL column for eventtime, default yes.
96 ;alias src => source
97 ;alias channel => source_channel
98 ;alias dst => dest
99 ;alias dstchannel => dest_channel
100
101 ; Any filter specified MUST match exactly or the event will be discarded
102 ;filter accountcode => somename
103 ;filter src => 123
104
105 ; Additionally, we now support setting static values per column. Reason
106 ; for this is to allow different sections to specify different values for
107 ; a certain named column, presumably separated by filters.
108 ;static "Some Special Value" => identifier_code