diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 86724f3f2902de16ac4883018d5f2a9c1cb31e90..ad99232aeb2ceecae3a499b1f7b1da72727777c1 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);