diff options
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index e9695940b..22a08120c 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -155,7 +155,7 @@ extern "C" { #include "asterisk/compiler.h" -#define AST_MAX_FDS 8 +#define AST_MAX_FDS 10 /* * We have AST_MAX_FDS file descriptors in a channel. * Some of them have a fixed use: @@ -297,6 +297,9 @@ struct ast_channel_tech { /*! \brief Write a frame, in standard format */ int (* const write_video)(struct ast_channel *chan, struct ast_frame *frame); + /*! \brief Write a text frame, in standard format */ + int (* const write_text)(struct ast_channel *chan, struct ast_frame *frame); + /*! \brief Find bridged channel */ struct ast_channel *(* const bridged_channel)(struct ast_channel *chan, struct ast_channel *bridge); @@ -888,6 +891,14 @@ int ast_write(struct ast_channel *chan, struct ast_frame *frame); */ int ast_write_video(struct ast_channel *chan, struct ast_frame *frame); +/*! \brief Write text frame to a channel + * This function writes the given frame to the indicated channel. + * \param chan destination channel of the frame + * \param frame frame that will be written + * \return It returns 1 on success, 0 if not implemented, and -1 on failure. + */ +int ast_write_text(struct ast_channel *chan, struct ast_frame *frame); + /*! \brief Send empty audio to prime a channel driver */ int ast_prod(struct ast_channel *chan); |