add ast_control_streamfile api call

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Anthony Minessale II
2004-05-26 15:22:54 +00:00
parent 8161efd26a
commit 8f9e2b6633
3 changed files with 16 additions and 6 deletions

10
app.c
View File

@@ -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;
}