summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
authorAnthony Minessale II <anthmct@yahoo.com>2004-05-26 15:22:54 +0000
committerAnthony Minessale II <anthmct@yahoo.com>2004-05-26 15:22:54 +0000
commit8f9e2b66338c832bd12e2260a3d7bba5673e2d9a (patch)
treef75e057f4c3c75f45e8cc594f2665657a10fca99 /app.c
parent8161efd26a14718fdedd876f184a5acad6d854ae (diff)
add ast_control_streamfile api call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'app.c')
-rwxr-xr-xapp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/app.c b/app.c
index b72f0efcb..e272dce54 100755
--- a/app.c
+++ b/app.c
@@ -406,3 +406,13 @@ int ast_linear_stream(struct ast_channel *chan, const char *filename, int fd, in
}
return res;
}
+
+int ast_control_streamfile(struct ast_channel *chan, char *file,char *f,char *r,int skipms) {
+ int res;
+ if ((res = ast_streamfile(chan, file, chan->language)))
+ ast_log(LOG_WARNING, "Unable to stream file %s\n", file);
+ if (!res)
+ res = ast_waitstream_fr(chan, AST_DIGIT_ANY,f,r,skipms);
+ return res;
+}
+