define ("DB_TYPE", isset($A2B->config["database"]['dbtype'])?$A2B->config["database"]['dbtype']:null); define ("SMTP_SERVER", isset($A2B->config['global']['smtp_server'])?$A2B->config['global']['smtp_server']:null); define ("SMTP_HOST", isset($A2B->config['global']['smtp_host'])?$A2B->config['global']['smtp_host']:null); define ("SMTP_USERNAME", isset($A2B->config['global']['smtp_username'])?$A2B->config['global']['smtp_username']:null); define ("SMTP_PASSWORD", isset($A2B->config['global']['smtp_password'])?$A2B->config['global']['smtp_password']:null); // TEST DID // if ($A2B -> CC_TESTING) $mode = 'did'; // Print header $A2B -> debug( DEBUG, $agi, __FILE__, __LINE__, "AGI Request:\n".print_r($agi -> request, true)); $A2B -> debug( DEBUG, $agi, __FILE__, __LINE__, "[INFO : $agi_version]"); /* GET THE AGI PARAMETER */ $A2B -> get_agi_request_parameter ($agi); if (!$A2B -> DbConnect()) { $agi -> stream_file('prepaid-final', '#'); exit; } define ("WRITELOG_QUERY", true); $instance_table = new Table(); $A2B -> set_instance_table ($instance_table); //preg_match("/up (.+), (\\d+) user/", `uptime`, $matches); //$uptime = $matches[1]; //$A2B -> debug( ERROR, $agi, __FILE__, __LINE__, 'uptimeFreeBSD='.$uptime); $uptime = exec("cat /proc/uptime"); if ($uptime == '') {