From e7e2f730045b0000df51efb6234c16fb44a4eb85 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 26 Jul 2024 16:32:49 -0600 Subject: [PATCH] Format the phone number for call recordings. --- app/call_recordings/call_recordings.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/call_recordings/call_recordings.php b/app/call_recordings/call_recordings.php index 5072667069..d4dbbe3865 100644 --- a/app/call_recordings/call_recordings.php +++ b/app/call_recordings/call_recordings.php @@ -293,9 +293,9 @@ echo " ".escape($row['domain_name'])."\n"; } echo " ".escape($row['caller_id_name'])."\n"; - echo " ".escape($row['caller_id_number'])."\n"; - echo " ".escape($row['caller_destination'])."\n"; - echo " ".escape($row['destination_number'])."\n"; + echo " ".escape(format_phone(substr($row['caller_id_number'], 0, 20)))."\n"; + echo " ".escape(format_phone(substr($row['caller_destination'], 0, 20)))."\n"; + echo " ".escape(format_phone(substr($row['destination_number'], 0, 20)))."\n"; echo " ".escape($row['call_recording_name'])."\n"; if (permission_exists('call_recording_play') || permission_exists('call_recording_download')) { echo " "; @@ -351,4 +351,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>