summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-06-01 18:50:18 +0000
committerMark Spencer <markster@digium.com>2004-06-01 18:50:18 +0000
commit8164972e34216ad266a9ecc55c97f178d9bc2c10 (patch)
tree68c95d0587a0363b109c7404ed029dc377a557e0 /apps
parent49257bafbce5d0fab102e1ffe7a883e6bac7f16f (diff)
allow multiple exit characters on control_streamfile, allow '1' to skip envelope
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 9ca3c9383..4c688b023 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2737,10 +2737,11 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc
if ((!res)&&(vmu->envelope))
res = play_message_datetime(chan, vmu, origtime, filename);
-
if ((!res)&&(vmu->saycid))
res = play_message_callerid(chan, vms, cid, context, 0);
-
+ /* Allow pressing '1' to skip envelope / callerid */
+ if (res == '1')
+ res = 0;
ast_destroy(msg_cfg);
if (!res) {