Sat Apr 26 2014 22:03:23

Asterisk developer's documentation


ast_fax_tech Struct Reference

used to register a FAX technology module with res_fax More...

#include <res_fax.h>

Collaboration diagram for ast_fax_tech:

Data Fields

int(*const cancel_session )(struct ast_fax_session *)
enum ast_fax_capabilities caps
char *(*const cli_show_capabilities )(int)
char *(*const cli_show_session )(struct ast_fax_session *, int)
char *(*const cli_show_settings )(int)
char *(*const cli_show_stats )(int)
const char *const description
void(*const destroy_session )(struct ast_fax_session *)
int(*const generate_silence )(struct ast_fax_session *)
struct ast_modulemodule
void *(*const new_session )(struct ast_fax_session *, struct ast_fax_tech_token *)
struct ast_frame *(*const read )(struct ast_fax_session *)
void(*const release_token )(struct ast_fax_tech_token *)
struct ast_fax_tech_token *(*const reserve_session )(struct ast_fax_session *)
int(*const start_session )(struct ast_fax_session *)
int(*const switch_to_t38 )(struct ast_fax_session *)
const char *const type
const char *const version
int(*const write )(struct ast_fax_session *, const struct ast_frame *)

Detailed Description

used to register a FAX technology module with res_fax

Definition at line 223 of file res_fax.h.


Field Documentation

int(* const cancel_session)(struct ast_fax_session *)

cancels a fax session

Definition at line 249 of file res_fax.h.

Referenced by fax_gateway_framehook_destroy(), and generic_fax_exec().

the ast_fax_capabilities supported by the fax technology

Definition at line 231 of file res_fax.h.

Referenced by fax_session_new(), and fax_session_reserve().

char*(* const cli_show_capabilities)(int)

displays capabilities of the fax technology

Definition at line 255 of file res_fax.h.

Referenced by cli_fax_show_capabilities().

char*(* const cli_show_session)(struct ast_fax_session *, int)

displays details about the fax session

Definition at line 257 of file res_fax.h.

Referenced by cli_fax_show_session().

char*(* const cli_show_settings)(int)

displays settings from the fax technology module

Definition at line 261 of file res_fax.h.

Referenced by cli_fax_show_settings().

char*(* const cli_show_stats)(int)

displays statistics from the fax technology module

Definition at line 259 of file res_fax.h.

Referenced by cli_fax_show_stats().

const char* const description

a short description of the fax technology

Definition at line 227 of file res_fax.h.

Referenced by ast_fax_tech_register(), cli_fax_show_capabilities(), cli_fax_show_settings(), cli_fax_show_version(), fax_session_new(), and fax_session_reserve().

void(* const destroy_session)(struct ast_fax_session *)

destroys an existing fax session

Definition at line 241 of file res_fax.h.

Referenced by destroy_session().

int(* const generate_silence)(struct ast_fax_session *)

initiates the generation of silence to the fax session

Definition at line 251 of file res_fax.h.

Referenced by generic_fax_exec().

struct ast_module* module

module information for the fax technology

Definition at line 233 of file res_fax.h.

Referenced by destroy_session(), fax_session_new(), fax_session_reserve(), and load_module().

void*(* const new_session)(struct ast_fax_session *, struct ast_fax_tech_token *)

creates a new fax session, optionally using a previously-reserved token

Definition at line 239 of file res_fax.h.

Referenced by fax_session_new().

struct ast_frame*(* const read)(struct ast_fax_session *) [read]

sends an Asterisk frame to res_fax

Definition at line 243 of file res_fax.h.

Referenced by generic_fax_exec().

void(* const release_token)(struct ast_fax_tech_token *)

releases an unused session token

Definition at line 237 of file res_fax.h.

Referenced by fax_session_release().

struct ast_fax_tech_token*(* const reserve_session)(struct ast_fax_session *) [read]

reserves a session for future use; returns a token

Definition at line 235 of file res_fax.h.

Referenced by fax_session_reserve().

int(* const start_session)(struct ast_fax_session *)

starts the fax session

Definition at line 247 of file res_fax.h.

Referenced by fax_gateway_start(), and generic_fax_exec().

int(* const switch_to_t38)(struct ast_fax_session *)

switches an existing dual-mode session from audio to T.38

Definition at line 253 of file res_fax.h.

Referenced by generic_fax_exec().

const char* const type

the type of fax session supported with this ast_fax_tech structure

Definition at line 225 of file res_fax.h.

Referenced by ast_fax_tech_register(), ast_fax_tech_unregister(), cli_fax_show_capabilities(), cli_fax_show_sessions(), and cli_fax_show_settings().

const char* const version

version string of the technology module

Definition at line 229 of file res_fax.h.

Referenced by cli_fax_show_version().

int(* const write)(struct ast_fax_session *, const struct ast_frame *)

writes an Asterisk frame to the fax session

Definition at line 245 of file res_fax.h.

Referenced by fax_gateway_detect_v21(), fax_gateway_framehook(), and generic_fax_exec().


The documentation for this struct was generated from the following file: