diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-01-10 21:58:47 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-01-10 21:58:47 +0000 |
commit | 45634bab418efc7c49de17e38439b4826ab0d066 (patch) | |
tree | 316628ecf84074734588ba6af07ac2a712cd2e94 /apps | |
parent | 3f152e5ff0ee6fe26419814421cc5c576d49e5fa (diff) |
Merged revisions 97925 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r97925 | mmichelson | 2008-01-10 15:57:06 -0600 (Thu, 10 Jan 2008) | 6 lines
Let us leave a voicemail for ourself if we have logged into VoiceMailMain and chosen
to leave a message.
(closes issue #11735, reported and patched by jamessan)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b337e754a..4ca73a418 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4300,8 +4300,8 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st /* start optimistic */ valid_extensions = 1; while (s) { - /* Don't forward to ourselves. find_user is going to malloc since we have a NULL as first argument */ - if (strcmp(s,sender->mailbox) && (receiver = find_user(NULL, context, s))) { + /* Don't forward to ourselves but allow leaving a message for ourselves (flag == 1). find_user is going to malloc since we have a NULL as first argument */ + if ((flag == 1 || strcmp(s,sender->mailbox)) && (receiver = find_user(NULL, context, s))) { AST_LIST_INSERT_HEAD(&extensions, receiver, list); found++; } else { |