diff --git a/app/xml_cdr/xml_cdr_inc.php b/app/xml_cdr/xml_cdr_inc.php index 30ae4e08cf..ff0835b319 100644 --- a/app/xml_cdr/xml_cdr_inc.php +++ b/app/xml_cdr/xml_cdr_inc.php @@ -120,7 +120,7 @@ $mod_caller_id_name = str_replace("*", "%", $caller_id_name); $sql_where_ands[] = "caller_id_name like '".$mod_caller_id_name."'"; } - if (strlen($caller_extension_uuid) > 0) { + if (strlen($caller_extension_uuid) > 0 && is_uuid($caller_extension_uuid)) { $sql_where_ands[] = "extension_uuid = '".$caller_extension_uuid."'"; } if (strlen($caller_id_number) > 0) {