mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-06 18:13:45 +00:00
Add voicemail prepending feature plus forwarding to many extensions if you specify exten1*exten2*.....#
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user