diff options
author | Joshua Colp <jcolp@digium.com> | 2009-04-09 16:19:35 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2009-04-09 16:19:35 +0000 |
commit | abcc0b93976fe5d93143aacd46841aed40f1ff45 (patch) | |
tree | b3515cca315d0a436265cc7f4e6f74b58b471da4 /include | |
parent | 8f28bfc63e4d64f36fd57ae6a4ef5483bb6e4cd2 (diff) |
Add support for allowing the channel driver to handle transcoding.
This was accomplished using a set of options and the setoption channel callback.
The core calls into the channel driver using these options and the channel driver
either returns success or failure.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/frame.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index f7e8b20ad..a16cf804c 100644 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -391,6 +391,15 @@ enum ast_control_transfer { */ #define AST_OPTION_T38_STATE 10 +/*! Request that the channel driver deliver frames in a specific format */ +#define AST_OPTION_FORMAT_READ 11 + +/*! Request that the channel driver be prepared to accept frames in a specific format */ +#define AST_OPTION_FORMAT_WRITE 12 + +/*! Request that the channel driver make two channels of the same tech type compatible if possible */ +#define AST_OPTION_MAKE_COMPATIBLE 13 + struct oprmode { struct ast_channel *peer; int mode; |