From 5891a54a6f8214ff315d6b37236214f59102299c Mon Sep 17 00:00:00 2001 From: eli Date: Wed, 22 Jul 2026 09:29:36 -0400 Subject: [PATCH] Add timeout destination handling in call_flow_map Implemented logic to resolve timeout destinations for ring groups, enhancing call flow management. --- resources/classes/call_flow_map.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/classes/call_flow_map.php b/resources/classes/call_flow_map.php index 3b4c741..ede008f 100644 --- a/resources/classes/call_flow_map.php +++ b/resources/classes/call_flow_map.php @@ -419,6 +419,17 @@ private function build_ring_group(string $uuid, ?string $parent_id = null, strin $this->resolve_destination($fwd_app, $fwd_data, $node_id, 'No Answer', $depth + 1); } + // Exit Action / timeout destination (ring_group_timeout_app / ring_group_timeout_data) + $timeout_app = $row['ring_group_timeout_app'] ?? ''; + $timeout_data = $row['ring_group_timeout_data'] ?? ''; + if (!empty($timeout_app)) { + $exit_label = 'Exit'; + if (!empty($row['ring_group_exit_key'])) { + $exit_label .= ' / Key ' . $row['ring_group_exit_key']; + } + $this->resolve_destination($timeout_app, $timeout_data, $node_id, $exit_label, $depth + 1); + } + return $node_id; }