aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-26 17:40:25 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-26 17:40:25 +0000
commit1426132cea1c811918e0c55997eaf5fef80f80c5 (patch)
treec6d961da1555f972df6357802567859046e7a3bc /apps
parenta1fa45760e632d9a689d0476b25409af81a4f5d1 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@125438 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index d4f647264..f06ff02d2 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -5394,7 +5394,11 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st
res = ast_play_and_wait(chan, "vm-messages");
if (!res)
res = ast_play_and_wait(chan, "vm-saved"); */
- res = ast_play_and_wait(chan, "vm-msgsaved");
+
+ /* 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");
+ }
}
}
}