aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authoranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-26 15:22:54 +0000
committeranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-26 15:22:54 +0000
commit38b54ce242c57c63b46e3a665d9a1e3602e6d10b (patch)
treef75e057f4c3c75f45e8cc594f2665657a10fca99 /apps/app_voicemail.c
parent5657d4e2dbfb0b8d9855720ac327114f2c7ea238 (diff)
add ast_control_streamfile api call
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3075 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-xapps/app_voicemail.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 37972cb49..8c0a2fef0 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2549,12 +2549,9 @@ static int wait_file2(struct ast_channel *chan, struct vm_state *vms, char *file
static int wait_file(struct ast_channel *chan, struct vm_state *vms, char *file)
{
- int res;
- if ((res = ast_streamfile(chan, file, chan->language)))
- ast_log(LOG_WARNING, "Unable to play message %s\n", file);
- if (!res)
- res = ast_waitstream_fr(chan, AST_DIGIT_ANY, "#", "*",skipms);
- return res;
+
+ return ast_control_streamfile(chan,file,"#","*",skipms);
+
}
static int play_message_datetime(struct ast_channel *chan, struct ast_vm_user *vmu, char *origtime, char *filename)