summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2015-01-22 14:23:13 +0000
committerMatthew Jordan <mjordan@digium.com>2015-01-22 14:23:13 +0000
commitbeb20440e0db725e7b0a2768574c60525e44af12 (patch)
treee05ad3ee5c917baed57aa673c0668b115f14434e /apps/app_voicemail.c
parent5e10007dbde4dcad25776708000ddd027d678cf7 (diff)
apps/app_voicemail: Trigger MWI notification with MixMonitor m() option
The MixMonitor m() option allows a recording to be pushed to a specific voicemail mailbox. If the message is delivered to the mailbox's INBOX, however, no MWI notification is currently raised. This patch corrects the issue by properly calling notify_new_state from the msg_create_from_file function. This will cause MWI to be triggered if the message was placed in the mailbox's INBOX. ASTERISK-24709 #close Reported by: Gareth Palmer patches: app_voicemail-430919.patch uploaded by Gareth Palmer (License 5169) ........ Merged revisions 430920 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@430921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 86724f3f2..ad99232ae 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -1098,6 +1098,8 @@ static void read_password_from_file(const char *secretfn, char *password, int pa
static int write_password_to_file(const char *secretfn, const char *password);
static const char *substitute_escapes(const char *value);
static int message_range_and_existence_check(struct vm_state *vms, const char *msg_ids [], size_t num_msgs, int *msg_nums, struct ast_vm_user *vmu);
+static void notify_new_state(struct ast_vm_user *vmu);
+
/*!
* Place a message in the indicated folder
*
@@ -6373,6 +6375,7 @@ static int msg_create_from_file(struct ast_vm_recording_data *recdata)
}
STORE(dir, recipient->mailbox, recipient->context, msgnum, NULL, recipient, fmt, 0, vms, "", msg_id);
+ notify_new_state(recipient);
}
free_user(recipient);