mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-10 11:58:08 +00:00
Improve T.38 negotiation by exchanging session parameters between application and channel.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@203699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -323,7 +323,8 @@ enum ast_control_frame_type {
|
||||
AST_CONTROL_SRCUPDATE = 20, /*!< Indicate source of media has changed */
|
||||
AST_CONTROL_TRANSFER = 21, /*!< Indicate status of a transfer request */
|
||||
AST_CONTROL_CONNECTED_LINE = 22,/*!< Indicate connected line has changed */
|
||||
AST_CONTROL_REDIRECTING = 23 /*!< Indicate redirecting id has changed */
|
||||
AST_CONTROL_REDIRECTING = 23, /*!< Indicate redirecting id has changed */
|
||||
AST_CONTROL_T38_PARAMETERS = 24, /*! T38 state change request/notification with parameters */
|
||||
};
|
||||
|
||||
enum ast_control_t38 {
|
||||
@@ -334,6 +335,31 @@ enum ast_control_t38 {
|
||||
AST_T38_REFUSED /*!< T38 refused for some reason (usually rejected by remote end) */
|
||||
};
|
||||
|
||||
enum ast_control_t38_rate {
|
||||
AST_T38_RATE_2400 = 0,
|
||||
AST_T38_RATE_4800,
|
||||
AST_T38_RATE_7200,
|
||||
AST_T38_RATE_9600,
|
||||
AST_T38_RATE_12000,
|
||||
AST_T38_RATE_14400,
|
||||
};
|
||||
|
||||
enum ast_control_t38_rate_management {
|
||||
AST_T38_RATE_MANAGEMENT_TRANSFERED_TCF = 0,
|
||||
AST_T38_RATE_MANAGEMENT_LOCAL_TCF,
|
||||
};
|
||||
|
||||
struct ast_control_t38_parameters {
|
||||
enum ast_control_t38 request_response; /*!< Request or response of the T38 control frame */
|
||||
unsigned int version; /*!< Supported T.38 version */
|
||||
unsigned int max_datagram; /*!< Maximum datagram size supported */
|
||||
enum ast_control_t38_rate rate; /*!< Maximum fax rate supported */
|
||||
enum ast_control_t38_rate_management rate_management; /*!< Rate management setting */
|
||||
unsigned int fill_bit_removal:1; /*!< Set if fill bit removal should be used */
|
||||
unsigned int transcoding_mmr:1; /*!< Set if MMR transcoding should be used */
|
||||
unsigned int transcoding_jbig:1; /*!< Set if JBIG transcoding should be used */
|
||||
};
|
||||
|
||||
enum ast_control_transfer {
|
||||
AST_TRANSFER_SUCCESS = 0, /*!< Transfer request on the channel worked */
|
||||
AST_TRANSFER_FAILED, /*!< Transfer request on the channel failed */
|
||||
|
||||
Reference in New Issue
Block a user