diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-03 20:21:41 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-03 20:21:41 +0000 |
commit | 5ea588cc8851246c4492dbd103e08abcd0a5249b (patch) | |
tree | 73854b4ca68d78a4c155edf0a81614d56a50aa42 /apps/app_voicemail.c | |
parent | 62b554cc8966f9f5411d4b0bdda216d34253e933 (diff) |
Merged revisions 78101 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r78101 | russell | 2007-08-03 15:14:06 -0500 (Fri, 03 Aug 2007) | 10 lines
(closes issue #10194)
Reported by: blitzrage
Patches:
bug0010194 uploaded by vovochka
Tested by: blitzrage
Fix a problem when you call Voicemail() with multiple mailboxes specified and
ODBC_STORAGE is in use. The audio part of the message was only given to the
first mailbox specified.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78102 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 175620237..7f2145e13 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4154,8 +4154,14 @@ static int notify_new_message(struct ast_channel *chan, struct ast_vm_user *vmu, if (!attach_user_voicemail) attach_user_voicemail = ast_test_flag((&globalflags), VM_ATTACH); + if (attach_user_voicemail) + RETRIEVE(todir, msgnum, vmu->mailbox, vmu->context); + /*XXX possible imap issue, should category be NULL XXX*/ sendmail(myserveremail, vmu, msgnum, vmu->context, vmu->mailbox, cidnum, cidname, fn, fmt, duration, attach_user_voicemail, chan, category); + + if (attach_user_voicemail) + DISPOSE(todir, msgnum); } if (!ast_strlen_zero(vmu->pager)) |