Asterisk - The Open Source Telephony Project
18.5.0
|
Spandsp T.38 and G.711 FAX Resource. More...
#include "asterisk.h"
#include "asterisk/logger.h"
#include "asterisk/module.h"
#include "asterisk/strings.h"
#include "asterisk/cli.h"
#include "asterisk/utils.h"
#include "asterisk/timing.h"
#include "asterisk/astobj2.h"
#include "asterisk/res_fax.h"
#include "asterisk/channel.h"
#include "asterisk/format_cache.h"
#include <spandsp.h>
#include <spandsp/version.h>
Go to the source code of this file.
Data Structures | |
struct | spandsp_pvt::frame_queue |
struct | spandsp_fax_stats |
struct | spandsp_pvt |
Macros | |
#define | ASTMM_LIBC ASTMM_IGNORE |
#define | SPANDSP_ENGAGE_UDPTL_NAT_RETRY 3 |
#define | SPANDSP_EXPOSE_INTERNAL_STRUCTURES |
#define | SPANDSP_FAX_SAMPLES 160 |
#define | SPANDSP_FAX_TIMER_RATE 8000 / SPANDSP_FAX_SAMPLES /* 50 ticks per second, 20ms, 160 samples per second */ |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | load_module (void) |
load res_fax_spandsp More... | |
static void | session_destroy (struct spandsp_pvt *p) |
static void | set_ecm (t30_state_t *t30_state, struct ast_fax_session_details *details) |
static void | set_file (t30_state_t *t30_state, struct ast_fax_session_details *details) |
static void | set_local_info (t30_state_t *t30_state, struct ast_fax_session_details *details) |
static void | set_logging (logging_state_t *state, struct ast_fax_session_details *details) |
static int | spandsp_fax_cancel (struct ast_fax_session *s) |
static char * | spandsp_fax_cli_show_capabilities (int fd) |
static char * | spandsp_fax_cli_show_session (struct ast_fax_session *s, int fd) |
static char * | spandsp_fax_cli_show_settings (int fd) |
Show res_fax_spandsp settings. More... | |
static char * | spandsp_fax_cli_show_stats (int fd) |
static void | spandsp_fax_destroy (struct ast_fax_session *s) |
Destroy a spandsp fax session. More... | |
static void | spandsp_fax_gateway_cleanup (struct ast_fax_session *s) |
gather data and clean up after gateway ends More... | |
static int | spandsp_fax_gateway_process (struct ast_fax_session *s, const struct ast_frame *f) |
process a frame from the bridge More... | |
static int | spandsp_fax_gateway_start (struct ast_fax_session *s) |
activate a spandsp gateway based on the information in the given fax session More... | |
static void * | spandsp_fax_gw_gen_alloc (struct ast_channel *chan, void *params) |
simple routine to allocate data to generator More... | |
static void | spandsp_fax_gw_gen_release (struct ast_channel *chan, void *data) |
static int | spandsp_fax_gw_t30_gen (struct ast_channel *chan, void *data, int len, int samples) |
generate T.30 packets sent to the T.30 leg of gateway More... | |
static void * | spandsp_fax_new (struct ast_fax_session *s, struct ast_fax_tech_token *token) |
create an instance of the spandsp tech_pvt for a fax session More... | |
static struct ast_frame * | spandsp_fax_read (struct ast_fax_session *s) |
Read a frame from the spandsp fax stack. More... | |
static int | spandsp_fax_start (struct ast_fax_session *s) |
static int | spandsp_fax_switch_to_t38 (struct ast_fax_session *s) |
static int | spandsp_fax_write (struct ast_fax_session *s, const struct ast_frame *f) |
Write a frame to the spandsp fax stack. More... | |
static void | spandsp_log (int level, const char *msg) |
Send spandsp log messages to asterisk. More... | |
static void | spandsp_manager_fax_session (struct mansession *s, const char *id_text, struct ast_fax_session *session) |
static int | spandsp_modems (struct ast_fax_session_details *details) |
static void | spandsp_v21_cleanup (struct ast_fax_session *s) |
static int | spandsp_v21_detect (struct ast_fax_session *s, const struct ast_frame *f) |
static int | spandsp_v21_new (struct spandsp_pvt *p) |
static void | spandsp_v21_tone (void *data, int code, int level, int delay) |
static void | t30_phase_e_handler (t30_state_t *t30_state, void *data, int completion_code) |
Phase E handler callback. More... | |
static int | t38_tx_packet_handler (t38_core_state_t *t38_core_state, void *data, const uint8_t *buf, int len, int count) |
static int | unload_module (void) |
unload res_fax_spandsp More... | |
static int | update_stats (struct spandsp_pvt *p, int completion_code) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Spandsp G.711 and T.38 FAX Technologies" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "30ef0c93b36035ec78c9cfd712d36d9b" , .support_level = AST_MODULE_SUPPORT_EXTENDED, .load = load_module, .unload = unload_module, .enhances = "res_fax", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct ast_fax_tech | spandsp_fax_tech |
struct { | |
struct spandsp_fax_stats g711 | |
ast_mutex_t lock | |
struct spandsp_fax_stats t38 | |
} | spandsp_global_stats |
Spandsp T.38 and G.711 FAX Resource.
This module registers the Spandsp FAX technology with the res_fax module.
Definition in file res_fax_spandsp.c.
#define ASTMM_LIBC ASTMM_IGNORE |
Definition at line 52 of file res_fax_spandsp.c.
#define SPANDSP_ENGAGE_UDPTL_NAT_RETRY 3 |
Definition at line 72 of file res_fax_spandsp.c.
Referenced by spandsp_fax_gateway_start().
#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES |
Definition at line 66 of file res_fax_spandsp.c.
#define SPANDSP_FAX_SAMPLES 160 |
Definition at line 70 of file res_fax_spandsp.c.
Referenced by spandsp_fax_read().
#define SPANDSP_FAX_TIMER_RATE 8000 / SPANDSP_FAX_SAMPLES /* 50 ticks per second, 20ms, 160 samples per second */ |
Definition at line 71 of file res_fax_spandsp.c.
Referenced by spandsp_fax_start().
|
static |
Definition at line 1270 of file res_fax_spandsp.c.
|
static |
Definition at line 1270 of file res_fax_spandsp.c.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 1270 of file res_fax_spandsp.c.
|
static |
load res_fax_spandsp
Definition at line 1249 of file res_fax_spandsp.c.
References ast_fax_tech_register(), ast_log, AST_MODFLAG_DEFAULT, AST_MODULE_INFO(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, AST_MODULE_SUPPORT_EXTENDED, ast_mutex_init, ASTERISK_GPL_KEY, LOG_ERROR, ast_fax_tech::module, NULL, ast_module_info::self, spandsp_global_stats, and unload_module().
|
static |
Definition at line 180 of file res_fax_spandsp.c.
References ast_frfree, AST_LIST_REMOVE_HEAD, ast_timer_close(), spandsp_pvt::fax_state, spandsp_pvt::isdone, spandsp_pvt::ist38, NULL, spandsp_pvt::read_frames, spandsp_pvt::t30_state, spandsp_pvt::t38_state, and spandsp_pvt::timer.
Referenced by spandsp_fax_destroy().
|
static |
Definition at line 479 of file res_fax_spandsp.c.
References ast_fax_session_details::ecm, and ast_fax_session_details::option.
Referenced by spandsp_fax_start().
|
static |
Definition at line 467 of file res_fax_spandsp.c.
References AST_FAX_TECH_RECEIVE, AST_LIST_FIRST, ast_fax_session_details::caps, and ast_fax_session_details::documents.
Referenced by spandsp_fax_start().
|
static |
Definition at line 456 of file res_fax_spandsp.c.
References ast_strlen_zero, ast_fax_session_details::headerinfo, and ast_fax_session_details::localstationid.
Referenced by spandsp_fax_start().
|
static |
Definition at line 444 of file res_fax_spandsp.c.
References ast_fax_session_details::debug, ast_fax_session_details::option, and spandsp_log().
Referenced by spandsp_fax_gateway_start(), spandsp_fax_new(), and spandsp_fax_start().
|
static |
Definition at line 1006 of file res_fax_spandsp.c.
References AST_FAX_TECH_GATEWAY, ast_fax_session_details::caps, ast_fax_session::details, spandsp_pvt::isdone, spandsp_pvt::t30_state, and ast_fax_session::tech_pvt.
|
static |
|
static |
Definition at line 1048 of file res_fax_spandsp.c.
References ao2_lock, ao2_unlock, ast_cli(), ast_fax_state_to_str(), AST_FAX_STATE_UNINITIALIZED, AST_FAX_TECH_GATEWAY, AST_FAX_TECH_RECEIVE, AST_FAX_TECH_SEND, AST_FAX_TECH_V21_DETECT, ast_fax_session_details::caps, CLI_SUCCESS, ast_fax_session::details, ast_fax_session::id, ast_fax_session::state, spandsp_pvt::stats, spandsp_pvt::t30_state, spandsp_pvt::t38_gw_state, and ast_fax_session::tech_pvt.
|
static |
Show res_fax_spandsp settings.
Definition at line 1234 of file res_fax_spandsp.c.
References CLI_SUCCESS.
|
static |
Definition at line 1197 of file res_fax_spandsp.c.
References ast_cli(), ast_mutex_lock, ast_mutex_unlock, CLI_SUCCESS, and spandsp_global_stats.
|
static |
Destroy a spandsp fax session.
Definition at line 603 of file res_fax_spandsp.c.
References AST_FAX_TECH_GATEWAY, AST_FAX_TECH_V21_DETECT, ast_free, ast_fax_session_details::caps, ast_fax_session::details, ast_fax_session::fd, NULL, session_destroy(), spandsp_fax_gateway_cleanup(), spandsp_v21_cleanup(), and ast_fax_session::tech_pvt.
|
static |
gather data and clean up after gateway ends
s | fax session |
Definition at line 916 of file res_fax_spandsp.c.
References AST_FAX_OPTFLAG_FALSE, AST_FAX_OPTFLAG_TRUE, ast_string_field_build, ast_fax_session::details, ast_fax_session_details::ecm, ast_fax_session_details::option, ast_fax_session_details::pages_transferred, spandsp_pvt::t38_gw_state, and ast_fax_session::tech_pvt.
Referenced by spandsp_fax_destroy().
|
static |
process a frame from the bridge
s | fax session |
f | frame to process |
Definition at line 894 of file res_fax_spandsp.c.
References ast_format_cmp(), AST_FORMAT_CMP_EQUAL, ast_format_slin, AST_FRAME_MODEM, AST_FRAME_VOICE, AST_MODEM_T38, ast_frame::data, ast_frame::datalen, ast_frame_subclass::format, ast_frame::frametype, ast_frame_subclass::integer, ast_frame::ptr, ast_frame::samples, ast_frame::seqno, ast_frame::subclass, spandsp_pvt::t38_core_state, spandsp_pvt::t38_gw_state, and ast_fax_session::tech_pvt.
Referenced by spandsp_fax_write().
|
static |
activate a spandsp gateway based on the information in the given fax session
s | fax session |
Definition at line 813 of file res_fax_spandsp.c.
References ast_generator::alloc, ao2_cleanup, ast_activate_generator(), ast_channel_bridge_peer(), ast_channel_get_t38_state(), AST_FAX_STATE_ACTIVE, AST_T38_RATE_MANAGEMENT_TRANSFERRED_TCF, spandsp_pvt::ast_t38_state, ast_fax_session::chan, ast_fax_session::details, ast_fax_session_details::ecm, ast_fax_t38_parameters::fill_bit_removal, spandsp_pvt::ist38, ast_fax_t38_parameters::max_ifp, NULL, ast_fax_session_details::option, ast_fax_session_details::our_t38_parameters, RAII_VAR, ast_fax_t38_parameters::rate_management, set_logging(), SPANDSP_ENGAGE_UDPTL_NAT_RETRY, spandsp_fax_gw_gen_alloc(), spandsp_fax_gw_gen_release(), spandsp_fax_gw_t30_gen(), spandsp_modems(), ast_fax_session::state, spandsp_pvt::t38_core_state, spandsp_pvt::t38_gw_state, T38_STATE_NEGOTIATED, T38_STATE_NEGOTIATING, t38_tx_packet_handler(), ast_fax_session::tech_pvt, ast_fax_session_details::their_t38_parameters, ast_fax_t38_parameters::transcoding_jbig, ast_fax_t38_parameters::transcoding_mmr, TRUE, and ast_fax_t38_parameters::version.
Referenced by spandsp_fax_start().
|
static |
simple routine to allocate data to generator
chan | channel |
params | generator data |
Definition at line 799 of file res_fax_spandsp.c.
References ao2_ref.
Referenced by spandsp_fax_gateway_start().
|
static |
Definition at line 805 of file res_fax_spandsp.c.
References ao2_ref.
Referenced by spandsp_fax_gateway_start().
|
static |
generate T.30 packets sent to the T.30 leg of gateway
chan | T.30 channel |
data | fax session structure |
len | not used |
samples | no of samples generated |
Definition at line 765 of file res_fax_spandsp.c.
References AST_FAX_FRFLAG_GATEWAY, ast_format_slin, AST_FRAME_SET_BUFFER, AST_FRAME_VOICE, ast_frfree, AST_FRIENDLY_OFFSET, ast_frisolate, ast_write(), ast_frame::data, ast_frame::datalen, ast_frame::frametype, spandsp_pvt::isdone, ast_frame::ptr, ast_frame::samples, spandsp_pvt::t38_gw_state, and ast_fax_session::tech_pvt.
Referenced by spandsp_fax_gateway_start().
|
static |
create an instance of the spandsp tech_pvt for a fax session
Definition at line 525 of file res_fax_spandsp.c.
References ast_calloc, AST_FAX_STATE_ACTIVE, AST_FAX_STATE_INITIALIZED, AST_FAX_TECH_AUDIO, AST_FAX_TECH_GATEWAY, AST_FAX_TECH_RECEIVE, AST_FAX_TECH_SEND, AST_FAX_TECH_T38, AST_FAX_TECH_V21_DETECT, ast_free, AST_LIST_HEAD_INIT, ast_log, ast_timer_fd(), ast_timer_open(), ast_fax_session_details::caps, ast_fax_session::channame, ast_fax_session::details, spandsp_pvt::fax_state, ast_fax_session::fd, ast_fax_session::id, spandsp_pvt::ist38, LOG_ERROR, NULL, spandsp_pvt::read_frames, set_logging(), spandsp_global_stats, spandsp_v21_new(), ast_fax_session::state, spandsp_pvt::stats, spandsp_pvt::t38_state, t38_tx_packet_handler(), and spandsp_pvt::timer.
|
static |
Read a frame from the spandsp fax stack.
Definition at line 622 of file res_fax_spandsp.c.
References ast_debug, AST_FAX_STATE_COMPLETE, ast_format_slin, AST_FRAME_SET_BUFFER, AST_FRAME_VOICE, AST_FRIENDLY_OFFSET, ast_frisolate, AST_LIST_REMOVE_HEAD, ast_log, ast_null_frame, ast_timer_ack(), buf, spandsp_pvt::fax_state, ast_frame::frametype, ast_fax_session::id, spandsp_pvt::isdone, spandsp_pvt::ist38, LOG_ERROR, NULL, spandsp_pvt::read_frames, ast_frame::samples, SPANDSP_FAX_SAMPLES, ast_fax_session::state, spandsp_pvt::t38_state, ast_fax_session::tech_pvt, and spandsp_pvt::timer.
|
static |
Definition at line 929 of file res_fax_spandsp.c.
References AST_FAX_STATE_ACTIVE, AST_FAX_STATE_OPEN, AST_FAX_TECH_GATEWAY, ast_log, ast_timer_set_rate(), ast_fax_session_details::caps, ast_fax_session::details, spandsp_pvt::fax_state, ast_fax_t38_parameters::fill_bit_removal, ast_fax_session::id, spandsp_pvt::ist38, LOG_ERROR, ast_fax_t38_parameters::max_ifp, set_ecm(), set_file(), set_local_info(), set_logging(), spandsp_fax_gateway_start(), SPANDSP_FAX_TIMER_RATE, spandsp_modems(), ast_fax_session::state, t30_phase_e_handler(), spandsp_pvt::t30_state, spandsp_pvt::t38_core_state, spandsp_pvt::t38_state, ast_fax_session::tech_pvt, ast_fax_session_details::their_t38_parameters, spandsp_pvt::timer, ast_fax_t38_parameters::transcoding_jbig, ast_fax_t38_parameters::transcoding_mmr, and TRUE.
Referenced by spandsp_fax_switch_to_t38().
|
static |
Definition at line 1021 of file res_fax_spandsp.c.
References ast_atomic_fetchadd_int(), ast_fax_session::details, spandsp_pvt::ist38, NULL, ast_fax_session_details::option, spandsp_fax_start(), spandsp_global_stats, spandsp_pvt::stats, ast_fax_session_details::switch_to_t38, spandsp_fax_stats::switched, spandsp_pvt::t30_state, and ast_fax_session::tech_pvt.
|
static |
Write a frame to the spandsp fax stack.
s | a fax session |
f | the frame to write |
0 | success |
-1 | failure |
Definition at line 734 of file res_fax_spandsp.c.
References AST_FAX_STATE_COMPLETE, ast_fax_state_to_str(), AST_FAX_TECH_GATEWAY, AST_FAX_TECH_V21_DETECT, ast_log, ast_fax_session_details::caps, ast_frame::data, ast_frame::datalen, ast_fax_session::details, spandsp_pvt::fax_state, ast_fax_session::id, spandsp_pvt::ist38, LOG_WARNING, ast_frame::ptr, ast_frame::samples, ast_frame::seqno, spandsp_fax_gateway_process(), spandsp_v21_detect(), ast_fax_session::state, spandsp_pvt::t38_core_state, and ast_fax_session::tech_pvt.
|
static |
Send spandsp log messages to asterisk.
level | the spandsp logging level |
msg | the log message |
Definition at line 433 of file res_fax_spandsp.c.
References ast_fax_log(), ast_log, LOG_DEBUG, LOG_ERROR, and LOG_WARNING.
Referenced by set_logging().
|
static |
Definition at line 1105 of file res_fax_spandsp.c.
References ao2_lock, ao2_unlock, ast_fax_session_operation_str(), ast_fax_state_to_str(), AST_FAX_STATE_UNINITIALIZED, AST_FAX_TECH_GATEWAY, AST_FAX_TECH_RECEIVE, AST_FAX_TECH_SEND, AST_FAX_TECH_V21_DETECT, ast_free, ast_str_append(), ast_str_buffer(), ast_str_create, astman_append(), ast_fax_session_details::caps, ast_fax_session::details, ast_fax_session::id, ast_fax_session::state, spandsp_pvt::stats, spandsp_pvt::t30_state, spandsp_pvt::t38_gw_state, and ast_fax_session::tech_pvt.
|
static |
Definition at line 499 of file res_fax_spandsp.c.
References AST_FAX_MODEM_V17, AST_FAX_MODEM_V27TER, AST_FAX_MODEM_V29, AST_FAX_MODEM_V34, ast_log, LOG_WARNING, and ast_fax_session_details::modems.
Referenced by spandsp_fax_gateway_start(), and spandsp_fax_start().
|
static |
Definition at line 594 of file res_fax_spandsp.c.
References ast_fax_session::tech_pvt, and spandsp_pvt::tone_state.
Referenced by spandsp_fax_destroy().
|
static |
Definition at line 673 of file res_fax_spandsp.c.
References ast_debug, ast_format_alaw, ast_format_cmp(), AST_FORMAT_CMP_EQUAL, ast_format_get_name(), ast_format_slin, ast_format_ulaw, ast_free, ast_log, ast_malloc, ast_frame::data, ast_frame::datalen, ast_fax_session::details, ast_frame::flags, ast_frame_subclass::format, ast_frame::len, LOG_WARNING, ast_frame::mallocd, NULL, ast_fax_session_details::option, ast_frame::ptr, ast_frame::samples, ast_frame::seqno, ast_frame::src, ast_frame::subclass, ast_fax_session::tech_pvt, spandsp_pvt::tone_state, ast_frame::ts, spandsp_pvt::v21_detected, and ast_fax_session_details::v21_detected.
Referenced by spandsp_fax_write().
|
static |
Definition at line 485 of file res_fax_spandsp.c.
References NULL, spandsp_v21_tone(), and spandsp_pvt::tone_state.
Referenced by spandsp_fax_new().
|
static |
Definition at line 664 of file res_fax_spandsp.c.
References spandsp_pvt::v21_detected.
Referenced by spandsp_v21_new().
|
static |
Phase E handler callback.
t30_state | the span t30 state |
data | this will be the ast_fax_session |
completion_code | the result of the fax session |
This function pulls stats from the spandsp stack and stores them for res_fax to use later.
Definition at line 378 of file res_fax_spandsp.c.
References ast_debug, AST_FAX_TECH_RECEIVE, ast_string_field_build, ast_string_field_set, c, ast_fax_session_details::caps, ast_fax_session::details, error(), ast_fax_session::id, spandsp_pvt::isdone, ast_fax_session_details::pages_transferred, result, ast_fax_session_details::result, ast_fax_session_details::resultstr, spandsp_pvt::stats, ast_fax_session::tech_pvt, and update_stats().
Referenced by spandsp_fax_start().
|
static |
Definition at line 217 of file res_fax_spandsp.c.
References AST_FAX_FRFLAG_GATEWAY, AST_FAX_TECH_GATEWAY, AST_FRAME_MODEM, AST_FRAME_SET_BUFFER, ast_frfree, ast_frisolate, AST_LIST_INSERT_TAIL, AST_MODEM_T38, ast_queue_frame(), ast_set_flag, spandsp_pvt::ast_t38_state, ast_write(), ast_fax_session_details::caps, ast_fax_session::chan, ast_fax_session::details, ast_frame::frametype, spandsp_pvt::read_frames, T38_STATE_NEGOTIATED, and ast_fax_session::tech_pvt.
Referenced by spandsp_fax_gateway_start(), and spandsp_fax_new().
|
static |
unload res_fax_spandsp
Definition at line 1241 of file res_fax_spandsp.c.
References ast_fax_tech_unregister(), AST_MODULE_LOAD_SUCCESS, ast_mutex_destroy, and spandsp_global_stats.
Referenced by load_module().
|
static |
The CED tone exceeded 5s
Timed out waiting for initial communication
Timed out waiting for the first message
Timed out waiting for procedural interrupt
The HDLC carrier did not stop in a timely manner
Failed to train with any of the compatible modems
Operator intervention failed
Far end is not compatible
Far end is not able to receive
Far end is not able to transmit
Far end cannot receive at the resolution of the image
Far end cannot receive at the size of image
Unexpected message received
Received bad response to DCS or training
Received a DCN from remote after sending a page
Invalid ECM response received from receiver
Received a DCN while waiting for a DIS
Invalid response after sending a page
Received other than DIS while waiting for DIS
Received no response to DCS, training or TCF
No response after sending a page
Timed out waiting for receiver ready (ECM mode)
Invalid ECM response received from transmitter
DCS received while waiting for DTC
Unexpected command after page received
Carrier lost during fax receive
Timed out while waiting for EOL (end Of line)
Timed out while waiting for first line
Timer T2 expired while waiting for DCN
Timer T2 expired while waiting for phase D
Timer T2 expired while waiting for fax page
Timer T2 expired while waiting for next fax page
Timer T2 expired while waiting for RR command
Timer T2 expired while waiting for NSS, DCS or MCF
Unexpected DCN while waiting for DCS or DIS
Unexpected DCN while waiting for image data
Unexpected DCN while waiting for EOM, EOP or MPS
Unexpected DCN after EOM or MPS sequence
Unexpected DCN after RR/RNR sequence
Unexpected DCN after requested retransmission
TIFF/F file cannot be opened
TIFF/F page not found
TIFF/F format is not compatible
TIFF/F page number tag missing
Incorrect values for TIFF/F tags
Bad TIFF/F header - incorrect values in fields
Cannot allocate memory for more pages
Disconnected after permitted retries
The call dropped prematurely
Poll not accepted
Far end's ident is not acceptable
Far end's sub-address is not acceptable
Far end's selective polling address is not acceptable
Far end's polled sub-address is not acceptable
Far end's sender identification is not acceptable
Far end's password is not acceptable
Far end's transmitting subscriber internet address is not acceptable
Far end's internet routing address is not acceptable
Far end's calling subscriber internet address is not acceptable
Far end's internet selective polling address is not acceptable
Far end's called subscriber internet address is not acceptable
Definition at line 257 of file res_fax_spandsp.c.
References ast_atomic_fetchadd_int(), ast_log, spandsp_fax_stats::call_dropped, spandsp_fax_stats::failed_to_train, spandsp_fax_stats::file_error, LOG_WARNING, spandsp_fax_stats::mem_error, spandsp_fax_stats::neg_failed, spandsp_fax_stats::nofax, spandsp_fax_stats::protocol_error, spandsp_fax_stats::retries_exceeded, spandsp_fax_stats::rx_protocol_error, spandsp_pvt::stats, spandsp_fax_stats::success, spandsp_fax_stats::tx_protocol_error, and spandsp_fax_stats::unknown_error.
Referenced by t30_phase_e_handler().
|
static |
Definition at line 1270 of file res_fax_spandsp.c.
|
static |
Definition at line 1270 of file res_fax_spandsp.c.
struct spandsp_fax_stats g711 |
Definition at line 142 of file res_fax_spandsp.c.
ast_mutex_t lock |
Definition at line 141 of file res_fax_spandsp.c.
|
static |
Definition at line 95 of file res_fax_spandsp.c.
struct { ... } spandsp_global_stats |
Referenced by load_module(), spandsp_fax_cli_show_stats(), spandsp_fax_new(), spandsp_fax_switch_to_t38(), and unload_module().
struct spandsp_fax_stats t38 |
Definition at line 143 of file res_fax_spandsp.c.
Referenced by transmit_t38().