diff options
author | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-26 15:22:54 +0000 |
---|---|---|
committer | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-26 15:22:54 +0000 |
commit | 38b54ce242c57c63b46e3a665d9a1e3602e6d10b (patch) | |
tree | f75e057f4c3c75f45e8cc594f2665657a10fca99 /app.c | |
parent | 5657d4e2dbfb0b8d9855720ac327114f2c7ea238 (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 'app.c')
-rwxr-xr-x | app.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; +} + |