aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-08-08 06:43:25 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-08-08 06:43:25 +0200
commitc99edbc48f823bfca9e7a77e04ce027136a324ea (patch)
tree8dfb7d3d4b4de673c55eb4901f8d05840fce2911 /data
parenta74388255ced48e9dac0490acc76b782f74cc2c8 (diff)
downloadauerswald-callnotifier-c99edbc48f823bfca9e7a77e04ce027136a324ea.tar.gz
auerswald-callnotifier-c99edbc48f823bfca9e7a77e04ce027136a324ea.zip
add missing dist config file
Diffstat (limited to 'data')
-rw-r--r--data/callnotifier.config.php.dist58
1 files changed, 58 insertions, 0 deletions
diff --git a/data/callnotifier.config.php.dist b/data/callnotifier.config.php.dist
new file mode 100644
index 0000000..3461feb
--- /dev/null
+++ b/data/callnotifier.config.php.dist
@@ -0,0 +1,58 @@
+<?php
+/**
+ * Callnotifier configuration file
+ * Copy that file to callnotifier.config.php and adjust it to your needs
+ */
+namespace callnotifier;
+
+//IP of Auerswald COMpact 3000
+$config->host = '192.168.1.2';
+
+//Load caller names from LDAP
+$callMonitor->addDetailler(
+ new CallMonitor_Detailler_LDAP(
+ array(
+ 'host' => '192.168.1.10',
+ 'basedn' => 'ou=adressbuch,dc=example,dc=org',
+ 'binddn' => 'cn=readonly,ou=users,dc=example,dc=org',
+ 'bindpw' => 'readonly'
+ )
+ )
+);
+
+//Load caller locations (city) from OpenGeoDb
+$callMonitor->addDetailler(
+ new CallMonitor_Detailler_OpenGeoDb(
+ 'mysql:host=192.168.1.10;dbname=opengeodb',
+ 'opengeodb-read',
+ 'opengeodb'
+ )
+);
+
+
+//Show starting and finished calls on the shell
+$log->addLogger(
+ new Logger_CallEcho(), array('startingCall', 'finishedCall')
+);
+
+//Log incoming finished calls to MSN 12345 to file "incoming.log"
+$log->addLogger(
+ new Logger_CallFile('incoming.log', 'i', '12345'),
+ array('finishedCall')
+);
+//Log all finished calls to file "all.log"
+$log->addLogger(
+ new Logger_CallFile('all.log'),
+ array('finishedCall')
+);
+//Log finished calls into a SQL database
+$log->addLogger(
+ new Logger_CallDb(
+ 'mysql:host=192.168.1.10;dbname=callnotifier',
+ 'username',
+ 'password'
+ ),
+ array('finishedCall')
+);
+
+?>