sendxmpp logger for incoming calls
[auerswald-callnotifier.git] / scripts / test-xmpp.php
1 <?php
2 namespace callnotifier;
3 require_once __DIR__ . '/../tests/bootstrap.php';
4
5 $l = new Logger_CallSendXmpp('cweiske@cweiske.de', 'i', array('12345'));
6
7 $call = new CallMonitor_Call();
8 $call->type  = 'i';
9 $call->from  = '03411234567';
10 //$call->fromName = 'Foo Bar';
11 $call->fromLocation = 'Leipzig';
12 $call->to    = '12345';
13 $call->start = strtotime('2013-08-03 20:11');
14 $call->end   = strtotime('2013-08-03 20:12');
15 $l->log('startingCall', array('call' => $call));
16
17 ?>