app_voicemail: Fix missing email in msg_create_from_file.

msg_create_from_file currently does not dispatch emails,
which means that applications using this function, such
as MixMonitor, will not trigger notifications to users
(only AMI events are sent our currently). This is inconsistent
with other ways users can receive voicemail.

This is fixed by adding an option that attempts to send
an email and falling back to just the notifications as
done now if that fails. The existing behavior remains
the default.

ASTERISK-30283 #close

Change-Id: I597cbb9cf971a18d8776172b26ab187dc096a5c7
This commit is contained in:
Naveen Albert
2022-11-03 20:28:23 +00:00
committed by Friendly Automation
parent a7cd9ce26f
commit 5a78ce5a1f
3 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
Subject: app_voicemail
The voicemail user option attachextrecs can
now be set to control whether external recordings
trigger voicemail email notifications.