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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -349,6 +349,9 @@ if (!class_exists('xml_cdr')) {
//check for duplicate call uuid's //check for duplicate call uuid's
$duplicate_uuid = false; $duplicate_uuid = false;
$uuid = urldecode($xml->variables->uuid); $uuid = urldecode($xml->variables->uuid);
if (empty($uuid)) {
$uuid = urldecode($xml->variables->call_uuid);
}
if ($uuid != null && is_uuid($uuid)) { if ($uuid != null && is_uuid($uuid)) {
//check for duplicates //check for duplicates
$sql = "select count(xml_cdr_uuid) "; $sql = "select count(xml_cdr_uuid) ";