From d0bc9034a14c692a49e9fbaf352d6432b3c3f5a5 Mon Sep 17 00:00:00 2001 From: konradSC Date: Wed, 31 Jul 2019 18:00:20 -0400 Subject: [PATCH] Check for null uuid's (#4402) Null UUID's are not very kind. They will sneak into your CDR's when you aren't looking and break an otherwise very nice database INSERT statement. We cannot tolerate that sort of behavior. --- app/xml_cdr/resources/classes/xml_cdr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 9891d715e7..15652821f1 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -266,7 +266,7 @@ if (!class_exists('xml_cdr')) { } //process data if the call detail record is not a duplicate - if ($duplicate_uuid == false) { + if ($duplicate_uuid == false && $uuid != null) { //get the destination number if ($xml->variables->current_application == "bridge") { $current_application_data = urldecode($xml->variables->current_application_data);