From 4579b5ca619ff3b55b3f3f8572c2f45854386e44 Mon Sep 17 00:00:00 2001 From: markster Date: Tue, 1 Jun 2004 18:50:18 +0000 Subject: 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 --- apps/app_voicemail.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps') 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) { -- cgit v1.2.3