summaryrefslogtreecommitdiff
path: root/include/asterisk/res_fax.h
diff options
context:
space:
mode:
authorMatthew Nicholson <mnicholson@digium.com>2010-04-26 14:18:15 +0000
committerMatthew Nicholson <mnicholson@digium.com>2010-04-26 14:18:15 +0000
commit13f523731a3c579a5091db815864aac1aacef6b9 (patch)
tree2cc022303fbbcb09697149f219dced6ead6c214c /include/asterisk/res_fax.h
parent5df647306749f30be8a6f0020807985c2c9476ba (diff)
Update res_fax and res_fax_spandsp to be compatible with Fax For Asterisk 1.2.
The fax session initilization code for T.38 faxes has been rewritten. T.38 session initialization was removed from generic_fax_exec, and split into two different code paths for receive and send. Also the 'z' option (to send a T.38 reinvite if we do not receive one) was added to sendfax. In the output of 'fax show sessions', the 'Type' column has been renamed to 'Tech' and replaced with a new 'Tech' column that will report 'G.711' or 'T.38'. Control of ECM defaults has been added to res_fax A 'fax show settings' CLI command has been added. Support of the new AST_T38_REQUEST_PARMS control method request to handle channels that have already received a T.38 reinvite before the FAX application is start has been added. Support for the 'fax show settings' command has been added to res_fax_spandsp and handling of the ECM flag has been slightly altered. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@258896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/res_fax.h')
-rw-r--r--include/asterisk/res_fax.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/asterisk/res_fax.h b/include/asterisk/res_fax.h
index 414ba38e3..9d83f6c2d 100644
--- a/include/asterisk/res_fax.h
+++ b/include/asterisk/res_fax.h
@@ -139,13 +139,19 @@ struct ast_fax_session_details {
/*! flag to send debug manager events */
uint32_t debug:2;
/*! flag indicating the use of Error Correction Mode (ECM) */
- uint32_t ecm:2;
+ uint32_t ecm:1;
/*! flag indicating the sending of status manager events */
uint32_t statusevents:2;
/*! allow audio mode FAX on T.38-capable channels */
uint32_t allow_audio:2;
/*! indicating the session switched to T38 */
uint32_t switch_to_t38:1;
+ /*! flag indicating whether CED should be sent (for receive mode) */
+ uint32_t send_ced:1;
+ /*! flag indicating whether CNG should be sent (for send mode) */
+ uint32_t send_cng:1;
+ /*! send a T.38 reinvite */
+ uint32_t request_t38:1;
};
} option;
/*! override the minimum transmission rate with a channel variable */
@@ -181,6 +187,8 @@ struct ast_fax_session {
enum ast_fax_state state;
/*! name of the Asterisk channel using the fax session */
char *channame;
+ /*! unique ID of the Asterisk channel using the fax session */
+ char *chan_uniqueid;
/*! Asterisk channel using the fax session */
struct ast_channel *chan;
/*! fax debugging structure */
@@ -229,6 +237,8 @@ struct ast_fax_tech {
char * (* const cli_show_session)(struct ast_fax_session *, int);
/*! displays statistics from the fax technology module */
char * (* const cli_show_stats)(int);
+ /*! displays settings from the fax technology module */
+ char * (* const cli_show_settings)(int);
};
/*! \brief register a fax technology */