diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index cd4772763f..748fd0baa5 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -1272,7 +1272,7 @@ //get the application array if (!empty($destination_array) && !empty($row["caller_profile"]["destination_number"])) { - if ($this->call_direction == 'outbound') { + if ($this->call_direction == 'outbound' && !empty($row["caller_profile"]["username"])) { $app = $this->find_app($destination_array, urldecode($row["caller_profile"]["username"])); } else {