3461feb0d2b71ea5bf47c4e908485ba570c836e0
[auerswald-callnotifier.git] / data / callnotifier.config.php.dist
1 <?php
2 /**
3  * Callnotifier configuration file
4  * Copy that file to callnotifier.config.php and adjust it to your needs
5  */
6 namespace callnotifier;
7
8 //IP of Auerswald COMpact 3000
9 $config->host = '192.168.1.2';
10
11 //Load caller names from LDAP
12 $callMonitor->addDetailler(
13     new CallMonitor_Detailler_LDAP(
14         array(
15             'host' => '192.168.1.10',
16             'basedn' => 'ou=adressbuch,dc=example,dc=org',
17             'binddn' => 'cn=readonly,ou=users,dc=example,dc=org',
18             'bindpw' => 'readonly'
19         )
20     )
21 );
22
23 //Load caller locations (city) from OpenGeoDb
24 $callMonitor->addDetailler(
25     new CallMonitor_Detailler_OpenGeoDb(
26         'mysql:host=192.168.1.10;dbname=opengeodb',
27         'opengeodb-read',
28         'opengeodb'
29     )
30 );
31
32
33 //Show starting and finished calls on the shell
34 $log->addLogger(
35     new Logger_CallEcho(), array('startingCall', 'finishedCall')
36 );
37
38 //Log incoming finished calls to MSN 12345 to file "incoming.log"
39 $log->addLogger(
40     new Logger_CallFile('incoming.log', 'i', '12345'),
41     array('finishedCall')
42 );
43 //Log all finished calls to file "all.log"
44 $log->addLogger(
45     new Logger_CallFile('all.log'),
46     array('finishedCall')
47 );
48 //Log finished calls into a SQL database
49 $log->addLogger(
50     new Logger_CallDb(
51         'mysql:host=192.168.1.10;dbname=callnotifier',
52         'username',
53         'password'
54     ),
55     array('finishedCall')
56 );
57
58 ?>