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.
This commit is contained in:
FusionPBX
2024-08-09 10:06:17 -06:00
committed by GitHub
parent a5a579cadc
commit 78d24e16dd

View File

@@ -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) ";