From 14a8c108499de2e27b38b2ec578b906e4864e75e Mon Sep 17 00:00:00 2001 From: Andrew Querol Date: Mon, 22 Mar 2021 23:34:51 -0500 Subject: [PATCH] Fix voicemails to support the new UUID linking --- app/voicemails/app_config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/voicemails/app_config.php b/app/voicemails/app_config.php index 75e7526146..595ff12c8a 100644 --- a/app/voicemails/app_config.php +++ b/app/voicemails/app_config.php @@ -34,9 +34,10 @@ $apps[$x]['destinations'][$y]['type'] = "sql"; $apps[$x]['destinations'][$y]['label'] = "voicemails"; $apps[$x]['destinations'][$y]['name'] = "voicemails"; - $apps[$x]['destinations'][$y]['sql'] = "select voicemail_id as destination, '*99' || voicemail_id as extension, voicemail_description as description from v_voicemails"; + $apps[$x]['destinations'][$y]['sql'] = "select voicemail_uuid, voicemail_id as destination, '*99' || voicemail_id as extension, voicemail_description as description from v_voicemails"; $apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and voicemail_enabled = 'true' "; $apps[$x]['destinations'][$y]['order_by'] = "voicemail_id asc "; + $apps[$x]['destinations'][$y]['field']['voicemail_uuid'] = "voicemail_uuid"; $apps[$x]['destinations'][$y]['field']['destination'] = "voicemail_id"; $apps[$x]['destinations'][$y]['field']['extension'] = "voicemail_id"; $apps[$x]['destinations'][$y]['field']['description'] = "voicemail_description";