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 */
|
/* start optimistic */
|
||||||
valid_extensions = 1;
|
valid_extensions = 1;
|
||||||
while (s) {
|
while (s) {
|
||||||
/* find_user is going to malloc since we have a NULL as first argument */
|
/* Don't forward to ourselves. find_user is going to malloc since we have a NULL as first argument */
|
||||||
if ((receiver = find_user(NULL, context, s))) {
|
if (strcmp(s,sender->mailbox) && (receiver = find_user(NULL, context, s))) {
|
||||||
if (!extensions)
|
if (!extensions)
|
||||||
vmtmp = extensions = receiver;
|
vmtmp = extensions = receiver;
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user