break; } $superfecta->setCLI($cli); $superfecta->setDID($trunk_info['did']); //We only want to run all of this if it's a parent-multifecta or the original code (single-fecta), No need to run this for every child if ($superfecta->isDebug() && $superfecta->is_master()) { // If debugging, report all errors if ($superfecta->isDebug(3)) { error_reporting(E_ALL | E_NOTICE); //strict is way too much information! :-( } else { error_reporting(E_ALL); // -1 was not letting me see the wood for the trees. } ini_set('display_errors', '1'); $superfecta->outn("<strong>Debug is on and set at level " . $superfecta->getDebug() . "</strong>"); $superfecta->outn("<strong>The Original Number: </strong>" . $trunk_info['callerid']); $superfecta->outn("<strong>The Scheme: </strong>" . $superfecta->scheme_name); $superfecta->outn("<strong>Scheme Type: </strong>" . $superfecta->type . "FECTA"); $superfecta->outn("<strong>SPAM Destination: </strong>" . $scheme_param['spam_destination']); $superfecta->out("<strong>is CLI: </strong>"); $superfecta->outn($cli ? 'true' : 'false'); $start_time_whole = $superfecta->mctime_float(); $end_time_whole = 0; $superfecta->outn("<strong>Debugging Enabled, will not stop after first result.</strong>"); $superfecta->outn("<strong>Scheme Variables:</strong><pre>" . print_r($superfecta->scheme_param, TRUE) . "</pre>"); $superfecta->outn("<strong>Trunk Variables:</strong><pre>" . print_r($trunk_info, TRUE) . "</pre>"); $superfecta->debug_log[] = "[" . time() . "][0] Trunk Values:" . print_r($trunk_info, TRUE); } elseif ($superfecta->is_master()) { $superfecta->debug_log[] = "[" . time() . "][0] Trunk Values:" . print_r($trunk_info, TRUE); }