diff --git a/gen_pc_sidecar.php b/gen_pc_sidecar.php index edcc969..16d07b6 100644 --- a/gen_pc_sidecar.php +++ b/gen_pc_sidecar.php @@ -134,7 +134,8 @@ foreach ($rows as $r) { $label = trim((string)($r['name'] ?? '')); $address = trim((string)($r['extension'] ?? '')); $type = trim((string)("normal")); - if ($address === '') continue; + + if ($address === '' && $index > 6) continue; $attendant->setAttribute("attendant.resourceList.{$index}.address", $address); $attendant->setAttribute("attendant.resourceList.{$index}.label", $label);