diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-06-30 18:22:28 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-06-30 18:22:28 +0000 |
commit | 405c5bbc3e861cf4dc25682e1cd0da52dbca7878 (patch) | |
tree | 2fe2a4f50430e0ba19e13a213fd366e4dcef8ba6 /include | |
parent | 9b4afefdcc442d920039e3453a81ad54356fa5bd (diff) |
Fax gateway functionality (i.e. translating between a T.30 terminal and a T.38
terminal). Can be enabled on a channel by setting FAXOPT(gateway)=yes in the
dialplan.
Big thanks to irroot for porting this code to use the framehooks api.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@325816 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/res_fax.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/res_fax.h b/include/asterisk/res_fax.h index 9a52115f0..5d2c903ff 100644 --- a/include/asterisk/res_fax.h +++ b/include/asterisk/res_fax.h @@ -42,6 +42,8 @@ enum ast_fax_capabilities { AST_FAX_TECH_T38 = (1 << 3), /*! sending mulitple documents supported */ AST_FAX_TECH_MULTI_DOC = (1 << 4), + /*! T.38 - T.30 Gateway */ + AST_FAX_TECH_GATEWAY = (1 << 5), }; /*! \brief fax modem capabilities */ @@ -168,6 +170,8 @@ struct ast_fax_session_details { struct ast_fax_t38_parameters our_t38_parameters; /*! the other endpoint's T.38 session parameters, if any */ struct ast_fax_t38_parameters their_t38_parameters; + /*! the id of the t.38 gateway framehook for this channel */ + int gateway_id; }; struct ast_fax_tech; @@ -204,6 +208,9 @@ struct ast_fax_session { struct ast_smoother *smoother; }; +/* if this overlaps with any AST_FRFLAG_* values, problems will occur */ +#define AST_FAX_FRFLAG_GATEWAY (1 << 13) + /*! \brief used to register a FAX technology module with res_fax */ struct ast_fax_tech { /*! the type of fax session supported with this ast_fax_tech structure */ |