private function start() { $call_import = new callImportManager($this->dbh, $this->traceObj); $call_import->getFritzBoxCallerList(); if (DUSNET_ACTIVE) { $dusnet_callist = $call_import->getDusNetCalls(DUSNET_SIPACCOUNT, DUSNET_USERNAME, DUSNET_PASSWORD); $call_import->putDusNetCallArrayIntoDB($dusnet_callist, DUSNET_PROVIDER_ID); } if (SIPGATE_ACTIVE) { //set month and year to empty values to persuade sipgate to return a complete call history //$call_import->setMonth(""); //$call_import->setYear(""); $sg_callist = $call_import->getSipgateCallsOfCurrentMonth(SIPGATE_USERNAME, SIPGATE_PASSWORD); $call_import->putSipgateCallArrayIntoDB($sg_callist, SIPGATE_PROVIDER_ID); } }
private function start() { $call_import = new callImportManager($this->dbh, $this->traceObj); $call_import->recheckUnmatchedCalls(); }
protected function importManager() { $call_import = new callImportManager($this->dbh, $this->tr); if ($this->importType == 1) { print '<h2>Anrufliste aus Fritzbox importieren</h2>'; $call_import->getFritzBoxCallerList(); } elseif ($this->importType == 2 && SIPGATE_ACTIVE) { print '<h2>EVN des Monats ' . $this->month . '/' . $this->year . ' von sipgate importieren</h2>'; $call_import->setMonth($this->month); $call_import->setYear($this->year); $sg_callist = $call_import->getSipgateCallsOfCurrentMonth(SIPGATE_USERNAME, SIPGATE_PASSWORD); $call_import->putSipgateCallArrayIntoDB($sg_callist, SIPGATE_PROVIDER_ID); } elseif ($this->importType == 3 && SIPGATE_ACTIVE) { print '<h2>Komplette EVN-Historie von sipgate importieren</h2>'; //set month and year to empty values to persuade sipgate to return a complete call history $call_import->setMonth(""); $call_import->setYear(""); $sg_callist = $call_import->getSipgateCallsOfCurrentMonth(SIPGATE_USERNAME, SIPGATE_PASSWORD); $call_import->putSipgateCallArrayIntoDB($sg_callist, SIPGATE_PROVIDER_ID); } elseif ($this->importType == 4 && DUSNET_ACTIVE) { print '<h2>EVN des Monats ' . $this->month . '/' . $this->year . ' von dus.net importieren</h2>'; $call_import->setMonth($this->month); $call_import->setYear($this->year); $dusnet_callist = $call_import->getDusNetCalls(DUSNET_SIPACCOUNT, DUSNET_USERNAME, DUSNET_PASSWORD); $call_import->putDusNetCallArrayIntoDB($dusnet_callist, DUSNET_PROVIDER_ID); } else { print '<h2>Error: Unknown importType value. Don\'t know what to do.</h2>'; } }