[Asterisk-cvs] asterisk app.c,1.15,1.16
anthm at lists.digium.com
anthm at lists.digium.com
Wed May 26 11:08:29 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv26983
Modified Files:
app.c
Log Message:
add ast_control_streamfile api call
Index: app.c
===================================================================
RCS file: /usr/cvsroot/asterisk/app.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- app.c 13 May 2004 19:01:10 -0000 1.15
+++ app.c 26 May 2004 15:22:54 -0000 1.16
@@ -406,3 +406,13 @@
}
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;
+}
+
More information about the svn-commits
mailing list