aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-01 18:50:18 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-01 18:50:18 +0000
commit4579b5ca619ff3b55b3f3f8572c2f45854386e44 (patch)
tree68c95d0587a0363b109c7404ed029dc377a557e0 /apps
parentdfc91a3458edcc04b62ba8a1ba8bc9c9465ac640 (diff)
allow multiple exit characters on control_streamfile, allow '1' to skip envelope
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3123 f38db490-d61c-443f-a65b-d21fe96a405b
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) {