cc9b9ff91a45af9b45643d9628a49ae7b79c766b
[asterisk/asterisk.git] / configs / cel_pgsql.conf.sample
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 ;
9 ;       eventtype
10 ;         CHANNEL_START = 1
11 ;         CHANNEL_END = 2
12 ;         HANGUP = 3
13 ;         ANSWER = 4
14 ;         APP_START = 5
15 ;         APP_END = 6
16 ;         BRIDGE_START = 7
17 ;         BRIDGE_END = 8
18 ;         CONF_START = 9
19 ;         CONF_END = 10
20 ;         PARK_START = 11
21 ;         PARK_END = 12
22 ;         BLINDTRANSFER = 13
23 ;         ATTENDEDTRANSFER = 14
24 ;         TRANSFER = 15
25 ;         HOOKFLASH = 16
26 ;         3WAY_START = 17
27 ;         3WAY_END = 18
28 ;         CONF_ENTER = 19
29 ;         CONF_EXIT = 20
30 ;         USER_DEFINED = 21
31 ;         LINKEDID_END = 22
32 ;         BRIDGE_UPDATE = 23
33 ;         PICKUP = 24
34 ;         FORWARD = 25
35 ;       eventtime  (timeval, includes microseconds)
36 ;       userdeftype (set only if eventtype == USER_DEFINED)
37 ;       cid_name
38 ;       cid_num
39 ;       cid_ani
40 ;       cid_rdnis
41 ;       cid_dnid
42 ;       exten
43 ;       context
44 ;       channame
45 ;       appname
46 ;       appdata
47 ;       accountcode
48 ;       peeraccount
49 ;       uniqueid
50 ;       linkedid
51 ;       amaflags  (an int)
52 ;       userfield
53 ;       peer
54 ;       extra
55
56 [global]
57 ; Use 'show_user_defined' to put "USER_DEFINED" in the eventtype field,
58 ; instead of (by default) just putting the user defined event name there.
59 ;
60 ;show_user_defined=yes
61
62 ;hostname=localhost
63 ;port=5432
64 ;dbname=asterisk
65 ;password=password
66 ;user=postgres
67 ;table=cel              ;SQL table where CEL's will be inserted