From a1c7d1c8c2b42f20fb2d6734091ed0e2e5f929d8 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 24 Mar 2018 15:13:19 -0600 Subject: [PATCH] Update app_defaults.php --- app/voicemails/app_defaults.php | 35 ++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/app/voicemails/app_defaults.php b/app/voicemails/app_defaults.php index 6d9b002142..d079678182 100644 --- a/app/voicemails/app_defaults.php +++ b/app/voicemails/app_defaults.php @@ -40,7 +40,7 @@ $x = 0; $array['email_templates'][$x]['email_template_uuid'] = '861e6e04-92fe-4bfb-a983-f29b3a5c07cf'; $array['email_templates'][$x]['template_language'] = 'de-at'; - $array['email_templates'][$x]['template_category'] = 'email'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; $array['email_templates'][$x]['template_subcategory'] = 'default'; $array['email_templates'][$x]['template_subject'] = 'Sprachnachricht von ${caller_id_name} <${caller_id_number}> ${message_duration}'; $array['email_templates'][$x]['template_body'] = "Neue Sprachnachricht\n"; @@ -54,7 +54,7 @@ $x++; $array['email_templates'][$x]['email_template_uuid'] = 'f45935f0-7dc1-4b92-9bd7-7b35121a3ca7'; $array['email_templates'][$x]['template_language'] = 'de-de'; - $array['email_templates'][$x]['template_category'] = 'email'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; $array['email_templates'][$x]['template_subcategory'] = 'default'; $array['email_templates'][$x]['template_subject'] = 'Sprachnachricht von ${caller_id_name} <${caller_id_number}> ${message_duration}'; $array['email_templates'][$x]['template_body'] = "Neue Sprachnachricht\n"; @@ -68,7 +68,7 @@ $x++; $array['email_templates'][$x]['email_template_uuid'] = 'defb880a-e368-4862-b946-a5244871af55'; $array['email_templates'][$x]['template_language'] = 'en-gb'; - $array['email_templates'][$x]['template_category'] = 'email'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; $array['email_templates'][$x]['template_subcategory'] = 'default'; $array['email_templates'][$x]['template_subject'] = 'Voice Mail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; $array['email_templates'][$x]['template_body'] = "Voicemail \${caller_id_name} <\${caller_id_number}>\n"; @@ -82,7 +82,7 @@ $x++; $array['email_templates'][$x]['email_template_uuid'] = 'c5f3ae42-a5af-4bb7-80a3-480cfe90fb49'; $array['email_templates'][$x]['template_language'] = 'en-gb'; - $array['email_templates'][$x]['template_category'] = 'email'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; $array['email_templates'][$x]['template_subcategory'] = 'transcription'; $array['email_templates'][$x]['template_subject'] = 'Voice Mail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; $array['email_templates'][$x]['template_body'] = "Voicemail \${caller_id_name} <\${caller_id_number}>\n"; @@ -96,7 +96,7 @@ $x++; $array['email_templates'][$x]['email_template_uuid'] = '56bb3416-53fc-4a3d-936d-9e3ba869081d'; $array['email_templates'][$x]['template_language'] = 'en-us'; - $array['email_templates'][$x]['template_category'] = 'email'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; $array['email_templates'][$x]['template_subcategory'] = 'default'; $array['email_templates'][$x]['template_subject'] = 'Voice Mail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; $array['email_templates'][$x]['template_body'] = "Voicemail \${caller_id_name} <\${caller_id_number}>\n"; @@ -110,7 +110,7 @@ $x++; $array['email_templates'][$x]['email_template_uuid'] = 'c8f14f37-4998-41a2-9c7b-7e810c77c570'; $array['email_templates'][$x]['template_language'] = 'en-us'; - $array['email_templates'][$x]['template_category'] = 'email'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; $array['email_templates'][$x]['template_subcategory'] = 'transcription'; $array['email_templates'][$x]['template_subject'] = 'Voice Mail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; $array['email_templates'][$x]['template_body'] = "Voicemail \${caller_id_name} <\${caller_id_number}>\n"; @@ -119,13 +119,30 @@ $array['email_templates'][$x]['template_body'] .= "Received \${message_date}\n"; $array['email_templates'][$x]['template_body'] .= "Length \${message_duration}\n"; $array['email_templates'][$x]['template_body'] .= "Message \${message}\n"; - $array['email_templates'][$x]['template_body'] .= "\n"; - $array['email_templates'][$x]['template_body'] .= "\${message_text}\n"; +- $array['email_templates'][$x]['template_body'] .= "\n"; +- $array['email_templates'][$x]['template_body'] .= "\${message_text}\n"; $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '890626c4-907b-44ad-9cf6-02d0b0a2379d'; + $array['email_templates'][$x]['template_language'] = 'en-us'; + $array['email_templates'][$x]['template_category'] = 'missed'; + $array['email_templates'][$x]['template_subcategory'] = 'default'; + $array['email_templates'][$x]['template_subject'] = 'Missed Call from ${caller_id_name} <${caller_id_number}>'; + $array['email_templates'][$x]['template_body'] = "Missed Call from ${caller_id_name} <${caller_id_number}> to ${sip_to_user} ext ${dialed_user}\n"; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'a1b11ded-831f-4b81-8a23-fce866196508'; + $array['email_templates'][$x]['template_language'] = 'en-gb'; + $array['email_templates'][$x]['template_category'] = 'missed'; + $array['email_templates'][$x]['template_subcategory'] = 'default'; + $array['email_templates'][$x]['template_subject'] = 'Missed Call from ${caller_id_name} <${caller_id_number}>'; + $array['email_templates'][$x]['template_body'] = "Missed Call from ${caller_id_name} <${caller_id_number}> to ${sip_to_user} ext ${dialed_user}\n"; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $array['email_templates'][$x]['template_description'] = ''; - //add the dialplan permission + //add the temporary permission $p = new permissions; $p->add("email_template_add", 'temp'); $p->add("email_template_edit", 'temp');