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
1.2
Matt O'Gorman 19 years ago
parent 891c6d599e
commit d9b9996a59

@ -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 {

Loading…
Cancel
Save