summaryrefslogtreecommitdiff
path: root/include/asterisk/res_fax.h
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2011-12-28 18:59:16 +0000
committerKevin P. Fleming <kpfleming@digium.com>2011-12-28 18:59:16 +0000
commitfdda4947767a5c0ee2424532ff5f01250797175d (patch)
tree1f46d156caa5b18f979c2cccb8d222659009236e /include/asterisk/res_fax.h
parentd9651f2be9e5f19d5a5408eb818df7202af3bf1d (diff)
Improve T.38 gateway V.21 preamble detection.
This commit removes the V.21 preamble detection code previously added to the generic DSP implementation in Asterisk, and instead enhances the res_fax module to be able to utilize V.21 preamble detection functionality made available by FAX technology modules. This commit also adds such support to res_fax_spandsp, which uses the Spandsp modem tone detection code to do the V.21 preamble detection. There should be no functional change here, other than much more reliable V.21 preamble detection (and thus T.38 gateway initiation). ........ Merged revisions 349248 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@349249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/res_fax.h')
-rw-r--r--include/asterisk/res_fax.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/res_fax.h b/include/asterisk/res_fax.h
index ba20944e4..b397bd445 100644
--- a/include/asterisk/res_fax.h
+++ b/include/asterisk/res_fax.h
@@ -44,6 +44,8 @@ enum ast_fax_capabilities {
AST_FAX_TECH_MULTI_DOC = (1 << 4),
/*! T.38 - T.30 Gateway */
AST_FAX_TECH_GATEWAY = (1 << 5),
+ /*! V21 detection is supported */
+ AST_FAX_TECH_V21_DETECT = (1 << 6),
};
/*! \brief fax modem capabilities */
@@ -160,6 +162,8 @@ struct ast_fax_session_details {
uint32_t send_cng:1;
/*! send a T.38 reinvite */
uint32_t request_t38:1;
+ /*! a V.21 preamble was detected */
+ uint32_t v21_detected:1;
};
} option;
/*! override the minimum transmission rate with a channel variable */