Don't play "your message has been saved" twice.
(closes issue #12893) Reported by: jaroth Patches: duplicate_saved.patch uploaded by jaroth (license 50) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
7b84cf6fa6
commit
c9ac1b8ca5
1 changed files with 5 additions and 1 deletions
|
@ -5394,10 +5394,14 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st
|
||||||
res = ast_play_and_wait(chan, "vm-messages");
|
res = ast_play_and_wait(chan, "vm-messages");
|
||||||
if (!res)
|
if (!res)
|
||||||
res = ast_play_and_wait(chan, "vm-saved"); */
|
res = ast_play_and_wait(chan, "vm-saved"); */
|
||||||
|
|
||||||
|
/* If forwarded with intro, DON'T PLAY THIS MESSAGE AGAIN! */
|
||||||
|
if (ast_strlen_zero(tmptxtfile)) { /* not a forwarded message with intro */
|
||||||
res = ast_play_and_wait(chan, "vm-msgsaved");
|
res = ast_play_and_wait(chan, "vm-msgsaved");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* If anything failed above, we still have this list to free */
|
/* If anything failed above, we still have this list to free */
|
||||||
while ((vmtmp = AST_LIST_REMOVE_HEAD(&extensions, list)))
|
while ((vmtmp = AST_LIST_REMOVE_HEAD(&extensions, list)))
|
||||||
|
|
Loading…
Reference in a new issue