aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-11-28 18:46:54 +0100
committerChristian Weiske <cweiske@cweiske.de>2014-11-28 18:46:54 +0100
commitcf25e04bad163a09aeaa7830cb23d0850f904b1b (patch)
tree71f045d0320a4fcb5ceca772b3c749fe48971d3f /scripts
parentd7af2527afe27d01a8ed809529c2d569d14fd0ee (diff)
downloadauerswald-callnotifier-cf25e04bad163a09aeaa7830cb23d0850f904b1b.tar.gz
auerswald-callnotifier-cf25e04bad163a09aeaa7830cb23d0850f904b1b.zip
sendxmpp logger for incoming calls
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test-xmpp.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/test-xmpp.php b/scripts/test-xmpp.php
new file mode 100644
index 0000000..b59d9f1
--- /dev/null
+++ b/scripts/test-xmpp.php
@@ -0,0 +1,17 @@
+<?php
+namespace callnotifier;
+require_once __DIR__ . '/../tests/bootstrap.php';
+
+$l = new Logger_CallSendXmpp('cweiske@cweiske.de', 'i', array('12345'));
+
+$call = new CallMonitor_Call();
+$call->type = 'i';
+$call->from = '03411234567';
+//$call->fromName = 'Foo Bar';
+$call->fromLocation = 'Leipzig';
+$call->to = '12345';
+$call->start = strtotime('2013-08-03 20:11');
+$call->end = strtotime('2013-08-03 20:12');
+$l->log('startingCall', array('call' => $call));
+
+?>