Fix voicemails to support the new UUID linking

This commit is contained in:
Andrew Querol
2021-03-22 23:34:51 -05:00
parent f1fbbad7ab
commit 14a8c10849

View File

@@ -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";