diff options
author | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-12-19 18:06:29 +0000 |
---|---|---|
committer | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-12-19 18:06:29 +0000 |
commit | 13f7800712388e79866583ac20833397c290c919 (patch) | |
tree | 3997e72cf3a9689d8db898fd55da97c677d3f94c /include/asterisk/file.h | |
parent | f803ef19f9a9d3fd813274f76b7ffcdea4b00965 (diff) |
Add voicemail prepending feature plus forwarding to many extensions if you specify exten1*exten2*.....#
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1872 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/file.h')
-rwxr-xr-x | include/asterisk/file.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/asterisk/file.h b/include/asterisk/file.h index f7808e435..316e47112 100755 --- a/include/asterisk/file.h +++ b/include/asterisk/file.h @@ -140,6 +140,22 @@ char ast_waitstream_fr(struct ast_channel *c, char *breakon, char *forward, char 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 @@ -261,6 +277,13 @@ int ast_stream_rewind(struct ast_filestream *fs, long ms); */ 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 #if defined(__cplusplus) || defined(c_plusplus) |