| 1 |
; The point of this module is to allow you log whatever you like in terms of |
| 2 |
; the CDR variables. Do you want to log uniqueid? Then simply ensure that |
| 3 |
; your table has that column. If you don't want the column, ensure that it |
| 4 |
; does not exist in the table structure. If you'd like to call uniqueid |
| 5 |
; something else in your table, simply provide an alias in the configuration |
| 6 |
; file that maps the standard CDR field name (uniqueid) to whatever column |
| 7 |
; name you like. Perhaps you'd like some extra CDR values logged that aren't |
| 8 |
; in the standard repertoire of CDR variables (some that come to mind are |
| 9 |
; certain values used for LCR: route, per_minute_cost, and per_minute_price). |
| 10 |
; Simply set those CDR variables in your dialplan, i.e. Set(CDR(route)=27), |
| 11 |
; ensure that a corresponding column exists in your table, and cdr_adaptive_odbc |
| 12 |
; will do the rest. |
| 13 |
; |
| 14 |
; This configuration defines the connections and tables for which CDRs may |
| 15 |
; be populated. Each context specifies a different CDR table to be used. |
| 16 |
; |
| 17 |
; The columns in the tables should match up word-for-word (case-insensitive) |
| 18 |
; to the CDR variables set in the dialplan. The natural advantage to this |
| 19 |
; system is that beyond setting up the configuration file to tell you what |
| 20 |
; tables to look at, there isn't anything more to do beyond creating the |
| 21 |
; columns for the fields that you want, and populating the corresponding |
| 22 |
; CDR variables in the dialplan. For the builtin variables only, you may |
| 23 |
; create aliases for the real column name. |
| 24 |
; |
| 25 |
; Please note that after adding columns to the database, it is necessary to |
| 26 |
; reload this module to get the new column names and types read. |
| 27 |
; |
| 28 |
; Warning: if you specify two contexts with exactly the same connection and |
| 29 |
; table names, you will get duplicate records in that table. So be careful. |
| 30 |
; |
| 31 |
|
| 32 |
;[first] |
| 33 |
;connection=mysql1 |
| 34 |
;table=cdr |
| 35 |
|
| 36 |
;[second] |
| 37 |
;connection=mysql1 |
| 38 |
;table=extracdr |
| 39 |
|
| 40 |
;[third] |
| 41 |
;connection=sqlserver |
| 42 |
;table=AsteriskCDR |
| 43 |
;schema=public ; for databases which support schemas |
| 44 |
;usegmtime=yes ; defaults to no |
| 45 |
;alias src => source |
| 46 |
;alias channel => source_channel |
| 47 |
;alias dst => dest |
| 48 |
;alias dstchannel => dest_channel |
| 49 |
; |
| 50 |
; Any filter specified MUST match exactly or the CDR will be discarded |
| 51 |
;filter accountcode => somename |
| 52 |
;filter src => 123 |
| 53 |
; Negative filters are also now available |
| 54 |
;filter src != 456 |
| 55 |
; |
| 56 |
; Additionally, we now support setting static values per column. The reason |
| 57 |
; for this is to allow different sections to specify different values for |
| 58 |
; a certain named column, presumably separated by filters. |
| 59 |
;static "Some Special Value" => identifier_code |
| 60 |
; |
| 61 |
; Add quoted indentifiers for table and columns names. |
| 62 |
;quoted_identifiers=" ; Default to null |