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:
parent
a5a579cadc
commit
78d24e16dd
|
|
@ -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) ";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue