| 1 |
; |
| 2 |
; Asterisk Channel Event Logging (CEL) - PostgreSQL Backend |
| 3 |
; |
| 4 |
|
| 5 |
; Sample Asterisk config file for CEL logging to PostgreSQL |
| 6 |
|
| 7 |
; CEL field names: |
| 8 |
; eventtype |
| 9 |
; CHANNEL_START = 1 |
| 10 |
; CHANNEL_END = 2 |
| 11 |
; HANGUP = 3 |
| 12 |
; ANSWER = 4 |
| 13 |
; APP_START = 5 |
| 14 |
; APP_END = 6 |
| 15 |
; BRIDGE_START = 7 |
| 16 |
; BRIDGE_END = 8 |
| 17 |
; CONF_START = 9 |
| 18 |
; CONF_END = 10 |
| 19 |
; PARK_START = 11 |
| 20 |
; PARK_END = 12 |
| 21 |
; BLINDTRANSFER = 13 |
| 22 |
; ATTENDEDTRANSFER = 14 |
| 23 |
; TRANSFER = 15 |
| 24 |
; HOOKFLASH = 16 |
| 25 |
; 3WAY_START = 17 |
| 26 |
; 3WAY_END = 18 |
| 27 |
; CONF_ENTER = 19 |
| 28 |
; CONF_EXIT = 20 |
| 29 |
; USER_DEFINED = 21 |
| 30 |
; LINKEDID_END = 22 |
| 31 |
; BRIDGE_UPDATE = 23 |
| 32 |
; PICKUP = 24 |
| 33 |
; FORWARD = 25 |
| 34 |
; eventtime (timeval, includes microseconds) |
| 35 |
; userdeftype (set only if eventtype == USER_DEFINED) |
| 36 |
; cid_name |
| 37 |
; cid_num |
| 38 |
; cid_ani |
| 39 |
; cid_rdnis |
| 40 |
; cid_dnid |
| 41 |
; exten |
| 42 |
; context |
| 43 |
; channame |
| 44 |
; appname |
| 45 |
; appdata |
| 46 |
; accountcode |
| 47 |
; peeraccount |
| 48 |
; uniqueid |
| 49 |
; linkedid |
| 50 |
; amaflags (an int) |
| 51 |
; userfield |
| 52 |
; peer |
| 53 |
; extra |
| 54 |
|
| 55 |
[global] |
| 56 |
; Use 'show_user_defined' to put "USER_DEFINED" in the eventtype field, |
| 57 |
; instead of (by default) just putting the user-defined event name there. |
| 58 |
;show_user_defined=yes |
| 59 |
|
| 60 |
; Log date/time in GMT. The default of this option is 'no'. |
| 61 |
;usegmtime=yes |
| 62 |
|
| 63 |
; PostgreSQL connection settings |
| 64 |
;hostname=localhost ; Database server hostname |
| 65 |
;port=5432 ; Port number for the PostgreSQL server |
| 66 |
;dbname=asterisk ; Database name |
| 67 |
;user=asterisk ; Username for the database |
| 68 |
;password=password ; Password for the user |
| 69 |
;table=cel ; SQL table where CELs will be inserted |
| 70 |
;schema=public ; Schema where the CEL table is located (optional). |
| 71 |
; Defaults to `current_schema()` if not specified. |
| 72 |
;appname=asterisk ; Optional PostgreSQL application_name (no whitespace allowed) |