From afaa1f0e39775a42c0ce37323cf8cb4eda6a7b86 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 31 Dec 2025 12:22:51 -0700 Subject: [PATCH] Set default value of voicemail_file to attach If the voicemail_file is empty set the value to attach as the default. --- app/voicemails/app_defaults.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/voicemails/app_defaults.php b/app/voicemails/app_defaults.php index b846cb8673..25cd170114 100644 --- a/app/voicemails/app_defaults.php +++ b/app/voicemails/app_defaults.php @@ -122,6 +122,11 @@ if ($domains_processed == 1) { $database->execute($sql); unset($sql); + //set default value of voicemail_file to attach + $sql = "update v_voicemails set voicemail_file = 'attach' where voicemail_file is null"; + $database->execute($sql); + unset($sql); + } ?>