mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-12 21:09:00 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user