Fix. Extension summary for local calls (#2918)
This commit is contained in:
parent
ebfa022a90
commit
9ee2b71ce2
|
|
@ -870,7 +870,7 @@ if (!class_exists('xml_cdr')) {
|
||||||
$sql .= " OR \n";
|
$sql .= " OR \n";
|
||||||
$sql .= " c.destination_number = e.number_alias))) \n";
|
$sql .= " c.destination_number = e.number_alias))) \n";
|
||||||
if ($this->include_internal) {
|
if ($this->include_internal) {
|
||||||
$sql .= " AND (direction = 'inbound' OR 'direction = 'outbound') \n";
|
$sql .= " AND (direction = 'inbound' OR direction = 'outbound') \n";
|
||||||
}
|
}
|
||||||
$sql .= " ) / \n";
|
$sql .= " ) / \n";
|
||||||
$sql .= "COUNT(*) \n";
|
$sql .= "COUNT(*) \n";
|
||||||
|
|
@ -886,7 +886,7 @@ if (!class_exists('xml_cdr')) {
|
||||||
$sql .= " OR \n";
|
$sql .= " OR \n";
|
||||||
$sql .= " c.destination_number = e.number_alias))) \n";
|
$sql .= " c.destination_number = e.number_alias))) \n";
|
||||||
if ($this->include_internal) {
|
if ($this->include_internal) {
|
||||||
$sql .= " AND (direction = 'inbound' OR 'direction = 'outbound') \n";
|
$sql .= " AND (direction = 'inbound' OR direction = 'outbound') \n";
|
||||||
}
|
}
|
||||||
$sql .= " ) AS aloc, \n";
|
$sql .= " ) AS aloc, \n";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue