[Asterisk-cvs] asterisk/include/asterisk file.h,1.14,1.15

martinp at lists.digium.com martinp at lists.digium.com
Fri Dec 19 12:14:54 CST 2003


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv21612/include/asterisk

Modified Files:
	file.h 
Log Message:
Add voicemail prepending feature plus forwarding to many extensions if you specify exten1*exten2*.....#


Index: file.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/file.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- file.h	28 Aug 2003 20:02:10 -0000	1.14
+++ file.h	19 Dec 2003 18:06:29 -0000	1.15
@@ -140,6 +140,22 @@
    1 if monfd is ready for reading */
 char ast_waitstream_full(struct ast_channel *c, char *breakon, int audiofd, int monfd);
 
+//! Starts reading from a file
+/*!
+ * \param filename the name of the file to write to
+ * \param type format of file you wish to write out to
+ * \param comment comment to go with
+ * \param oflags output file flags
+ * \param check (unimplemented, hence negligible)
+ * \param mode Open mode
+ * Open an incoming file stream.  oflags are flags for the open() command, and 
+ * if check is non-zero, then it will not write a file if there are any files that 
+ * start with that name and have an extension
+ * Please note, this is a blocking function.  Program execution will not return until ast_waitstream completes it's execution.
+ * Returns a struct ast_filestream on success, NULL on failure
+ */
+struct ast_filestream *ast_readfile(char *filename, char *type, char *comment, int oflags, int check, mode_t mode);
+
 //! Starts writing a file
 /*!
  * \param filename the name of the file to write to
@@ -260,6 +276,13 @@
  * Returns a long as a sample offset into stream
  */
 long ast_tellstream(struct ast_filestream *fs);
+
+//! Read a frame from a filestream
+/*!
+ * \param ast_filestream fs to act on
+ * Returns a frame or NULL if read failed
+ */ 
+struct ast_frame *ast_readframe(struct ast_filestream *s);
 
 #define AST_RESERVED_POINTERS 20
 




More information about the svn-commits mailing list