Don't insert the cdr records for records without a time stamp.

This commit is contained in:
Mark Crane
2012-11-08 05:18:12 +00:00
parent 410f572eef
commit 72b290175c

View File

@@ -211,9 +211,11 @@ function process_xml_cdr($db, $leg, $xml_string) {
}
//insert xml_cdr into the db
$database->add();
if ($debug) {
echo $database->sql."\n";
if (strlen($start_stamp) > 0) {
$database->add();
if ($debug) {
echo $database->sql."\n";
}
}
//insert the values