mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 16:50:14 +00:00
do not allow for users to forward voicemail to
themselves, patch from 7001 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@22596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3458,8 +3458,8 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i
|
||||
/* start optimistic */
|
||||
valid_extensions = 1;
|
||||
while (s) {
|
||||
/* find_user is going to malloc since we have a NULL as first argument */
|
||||
if ((receiver = find_user(NULL, context, 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))) {
|
||||
if (!extensions)
|
||||
vmtmp = extensions = receiver;
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user