20#ifndef _ASTERISK_RES_FAX_H
21#define _ASTERISK_RES_FAX_H
199struct ast_fax_tech_token;
232#define AST_FAX_FRFLAG_GATEWAY (1 << 13)
306void ast_fax_log(
int level,
const char *
file,
const int line,
const char *function,
const char *msg);
Asterisk main include file. File version handling, generic pbx functions.
Standard Command Line Interface.
Asterisk internal frame definitions.
ast_control_t38_rate_management
A set of macros to manage forward-linked lists.
#define AST_LIST_HEAD_NOLOCK(name, type)
Defines a structure to be used to hold a list of specified type (with no lock).
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
Asterisk locking-related definitions:
The AMI - Asterisk Manager Interface - is a TCP protocol created to manage Asterisk with third-party ...
Asterisk module definitions.
Options provided by main asterisk program.
void ast_fax_tech_unregister(struct ast_fax_tech *tech)
unregister a fax technology
unsigned int ast_fax_minrate(void)
get the minimum supported fax rate
ast_fax_optflag
fax session options
@ AST_FAX_OPTFLAG_DEFAULT
const char * ast_fax_state_to_str(enum ast_fax_state state)
convert an ast_fax_state to a string
ast_fax_capabilities
capabilities for res_fax to locate a fax technology module
@ AST_FAX_TECH_V21_DETECT
const char * ast_fax_session_operation_str(struct ast_fax_session *s)
get string representation of a FAX session's operation
unsigned int ast_fax_maxrate(void)
get the maxiumum supported fax rate
int ast_fax_tech_register(struct ast_fax_tech *tech)
register a fax technology
ast_fax_state
current state of a fax session
@ AST_FAX_STATE_INITIALIZED
@ AST_FAX_STATE_UNINITIALIZED
ast_fax_modems
fax modem capabilities
void ast_fax_log(int level, const char *file, const int line, const char *function, const char *msg)
Log message at FAX or recommended level.
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
#define AST_STRING_FIELD(name)
Declare a string field.
Main Channel structure associated with a channel.
struct ast_fax_document * next
The data communicated between the high level applications and the generic fax function.
const ast_string_field localstationid
struct ast_fax_t38_parameters their_t38_parameters
struct ast_fax_documents documents
const ast_string_field result
enum ast_fax_modems modems
const ast_string_field headerinfo
struct ast_fax_t38_parameters our_t38_parameters
union ast_fax_session_details::@251 option
const ast_string_field resultstr
const ast_string_field error
unsigned int pages_transferred
const ast_string_field resolution
const ast_string_field remotestationid
const ast_string_field transfer_rate
enum ast_fax_capabilities caps
The data required to handle a fax session.
struct ast_smoother * smoother
const struct ast_fax_tech * tech
unsigned long frames_received
unsigned long frames_sent
struct ast_channel * chan
struct ast_fax_debug_info * debug_info
struct ast_fax_session_details * details
unsigned int transcoding_jbig
enum ast_control_t38_rate rate
unsigned int transcoding_mmr
enum ast_control_t38_rate_management rate_management
unsigned int fill_bit_removal
used to register a FAX technology module with res_fax
void(*const release_token)(struct ast_fax_tech_token *)
void(*const destroy_session)(struct ast_fax_session *)
char *(*const cli_show_settings)(int)
struct ast_frame *(*const read)(struct ast_fax_session *)
int(*const switch_to_t38)(struct ast_fax_session *)
void *(*const new_session)(struct ast_fax_session *, struct ast_fax_tech_token *)
int(*const cancel_session)(struct ast_fax_session *)
struct ast_module * module
int(*const write)(struct ast_fax_session *, const struct ast_frame *)
int(*const generate_silence)(struct ast_fax_session *)
char *(*const cli_show_capabilities)(int)
const char *const version
const char *const description
char *(*const cli_show_stats)(int)
char *(*const cli_show_session)(struct ast_fax_session *, int)
int(*const start_session)(struct ast_fax_session *)
enum ast_fax_capabilities caps
struct ast_fax_tech_token *(*const reserve_session)(struct ast_fax_session *)
void(*const manager_fax_session)(struct mansession *, const char *, struct ast_fax_session *)
Data structure associated with a single frame of data.
In case you didn't read that giant block of text above the mansession_session struct,...