From 78d24e16dd3616ae448e5d2ef26d53b5343fe4dd Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 9 Aug 2024 10:06:17 -0600 Subject: [PATCH] If the uuid variable is empty try call_uuid Found a case where the variables -> uuid doesn't exist found call_uuid as an alternative. --- app/xml_cdr/resources/classes/xml_cdr.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 57dad22816..3e3bdc8939 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -349,6 +349,9 @@ if (!class_exists('xml_cdr')) { //check for duplicate call uuid's $duplicate_uuid = false; $uuid = urldecode($xml->variables->uuid); + if (empty($uuid)) { + $uuid = urldecode($xml->variables->call_uuid); + } if ($uuid != null && is_uuid($uuid)) { //check for duplicates $sql = "select count(xml_cdr_uuid) ";