#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <fcntl.h>
#include <time.h>
#include <tiffio.h>
#include "spandsp/telephony.h"
#include "spandsp/logging.h"
#include "spandsp/bit_operations.h"
#include "spandsp/queue.h"
#include "spandsp/power_meter.h"
#include "spandsp/complex.h"
#include "spandsp/tone_generate.h"
#include "spandsp/async.h"
#include "spandsp/hdlc.h"
#include "spandsp/fsk.h"
#include "spandsp/v29rx.h"
#include "spandsp/v29tx.h"
#include "spandsp/v27ter_rx.h"
#include "spandsp/v27ter_tx.h"
#include "spandsp/t4.h"
#include "spandsp/t30_fcf.h"
#include "spandsp/t35.h"
#include "spandsp/t30.h"
#include "spandsp/t30_api.h"
#include "spandsp/t30_logging.h"
#include "t30_local.h"
Functions | |
int | t30_set_tx_ident (t30_state_t *s, const char *id) |
Set the transmitted identifier associated with a T.30 context. | |
const char * | t30_get_tx_ident (t30_state_t *s) |
Set the transmitted identifier associated with a T.30 context. | |
const char * | t30_get_rx_ident (t30_state_t *s) |
Set the transmitted identifier associated with a T.30 context. | |
int | t30_set_tx_sub_address (t30_state_t *s, const char *sub_address) |
Set the transmitted sub-address associated with a T.30 context. | |
const char * | t30_get_tx_sub_address (t30_state_t *s) |
Get the received sub-address associated with a T.30 context. | |
const char * | t30_get_rx_sub_address (t30_state_t *s) |
Get the received sub-address associated with a T.30 context. | |
int | t30_set_tx_selective_polling_address (t30_state_t *s, const char *selective_polling_address) |
Set the transmitted selective polling address associated with a T.30 context. | |
const char * | t30_get_tx_selective_polling_address (t30_state_t *s) |
Get the received selective polling address associated with a T.30 context. | |
const char * | t30_get_rx_selective_polling_address (t30_state_t *s) |
Get the received selective polling address associated with a T.30 context. | |
int | t30_set_tx_polled_sub_address (t30_state_t *s, const char *polled_sub_address) |
Set the transmitted polled sub-address associated with a T.30 context. | |
const char * | t30_get_tx_polled_sub_address (t30_state_t *s) |
Get the received polled sub-address associated with a T.30 context. | |
const char * | t30_get_rx_polled_sub_address (t30_state_t *s) |
Get the received polled sub-address associated with a T.30 context. | |
int | t30_set_tx_sender_ident (t30_state_t *s, const char *sender_ident) |
Set the transmitted sender ident associated with a T.30 context. | |
const char * | t30_get_tx_sender_ident (t30_state_t *s) |
Get the received sender ident associated with a T.30 context. | |
const char * | t30_get_rx_sender_ident (t30_state_t *s) |
Get the received sender ident associated with a T.30 context. | |
int | t30_set_tx_password (t30_state_t *s, const char *password) |
Set the transmitted password associated with a T.30 context. | |
const char * | t30_get_tx_password (t30_state_t *s) |
Get the received password associated with a T.30 context. | |
const char * | t30_get_rx_password (t30_state_t *s) |
Get the received password associated with a T.30 context. | |
int | t30_set_tx_nsf (t30_state_t *s, const uint8_t *nsf, int len) |
Set the transmitted NSF frame to be associated with a T.30 context. | |
size_t | t30_get_tx_nsf (t30_state_t *s, const uint8_t *nsf[]) |
Set an NSF frame to be associated with a T.30 context. | |
size_t | t30_get_rx_nsf (t30_state_t *s, const uint8_t *nsf[]) |
Set an NSF frame to be associated with a T.30 context. | |
int | t30_set_tx_nsc (t30_state_t *s, const uint8_t *nsc, int len) |
Set the transmitted NSC frame to be associated with a T.30 context. | |
size_t | t30_get_tx_nsc (t30_state_t *s, const uint8_t *nsc[]) |
Set an NSC frame to be associated with a T.30 context. | |
size_t | t30_get_rx_nsc (t30_state_t *s, const uint8_t *nsc[]) |
Set an NSC frame to be associated with a T.30 context. | |
int | t30_set_tx_nss (t30_state_t *s, const uint8_t *nss, int len) |
Set the transmitted NSS frame to be associated with a T.30 context. | |
size_t | t30_get_tx_nss (t30_state_t *s, const uint8_t *nss[]) |
Set an NSS frame to be associated with a T.30 context. | |
size_t | t30_get_rx_nss (t30_state_t *s, const uint8_t *nss[]) |
Set an NSS frame to be associated with a T.30 context. | |
int | t30_set_tx_tsa (t30_state_t *s, int type, const char *address, int len) |
Set the transmitted ??? associated with a T.30 context. | |
size_t | t30_get_tx_tsa (t30_state_t *s, int *type, const char *address[]) |
Get the received ??? associated with a T.30 context. | |
size_t | t30_get_rx_tsa (t30_state_t *s, int *type, const char *address[]) |
Get the received ??? associated with a T.30 context. | |
int | t30_set_tx_ira (t30_state_t *s, int type, const char *address, int len) |
Set the transmitted ??? associated with a T.30 context. | |
size_t | t30_get_tx_ira (t30_state_t *s, int *type, const char *address[]) |
Get the received ??? associated with a T.30 context. | |
size_t | t30_get_rx_ira (t30_state_t *s, int *type, const char *address[]) |
Get the received ??? associated with a T.30 context. | |
int | t30_set_tx_cia (t30_state_t *s, int type, const char *address, int len) |
Set the transmitted ??? associated with a T.30 context. | |
size_t | t30_get_tx_cia (t30_state_t *s, int *type, const char *address[]) |
Get the received ??? associated with a T.30 context. | |
size_t | t30_get_rx_cia (t30_state_t *s, int *type, const char *address[]) |
Get the received ??? associated with a T.30 context. | |
int | t30_set_tx_isp (t30_state_t *s, int type, const char *address, int len) |
Set the transmitted ??? associated with a T.30 context. | |
size_t | t30_get_tx_isp (t30_state_t *s, int *type, const char *address[]) |
Get the received ??? associated with a T.30 context. | |
size_t | t30_get_rx_isp (t30_state_t *s, int *type, const char *address[]) |
Get the received ??? associated with a T.30 context. | |
int | t30_set_tx_csa (t30_state_t *s, int type, const char *address, int len) |
Set the transmitted ??? associated with a T.30 context. | |
size_t | t30_get_tx_csa (t30_state_t *s, int *type, const char *address[]) |
Get the received ??? associated with a T.30 context. | |
size_t | t30_get_rx_csa (t30_state_t *s, int *type, const char *address[]) |
Get the received ??? associated with a T.30 context. | |
int | t30_set_tx_page_header_info (t30_state_t *s, const char *info) |
Set the transmitted header information associated with a T.30 context. | |
size_t | t30_get_tx_page_header_info (t30_state_t *s, char *info) |
Get the header information associated with a T.30 context. | |
const char * | t30_get_rx_country (t30_state_t *s) |
Get the country of origin of the remote FAX machine associated with a T.30 context. | |
const char * | t30_get_rx_vendor (t30_state_t *s) |
Get the name of the vendor of the remote FAX machine associated with a T.30 context. | |
const char * | t30_get_rx_model (t30_state_t *s) |
Get the name of the model of the remote FAX machine associated with a T.30 context. | |
void | t30_set_rx_file (t30_state_t *s, const char *file, int stop_page) |
Set next receive file name. | |
void | t30_set_tx_file (t30_state_t *s, const char *file, int start_page, int stop_page) |
Set next transmit file name. | |
void | t30_set_iaf_mode (t30_state_t *s, int iaf) |
Set Internet aware FAX (IAF) mode. | |
int | t30_set_ecm_capability (t30_state_t *s, int enabled) |
Select ECM capability. | |
int | t30_set_rx_encoding (t30_state_t *s, int encoding) |
Specify the output encoding for TIFF files created during FAX reception. | |
int | t30_set_supported_modems (t30_state_t *s, int supported_modems) |
Specify supported modems. | |
int | t30_set_supported_compressions (t30_state_t *s, int supported_compressions) |
Specify supported compression types. | |
int | t30_set_supported_resolutions (t30_state_t *s, int supported_resolutions) |
Specify supported resolutions. | |
int | t30_set_supported_image_sizes (t30_state_t *s, int supported_image_sizes) |
Specify supported image sizes. | |
int | t30_set_supported_t30_features (t30_state_t *s, int supported_t30_features) |
Specify supported T.30 features. | |
void | t30_set_status (t30_state_t *s, int status) |
Set T.30 status. | |
int | t30_set_receiver_not_ready (t30_state_t *s, int count) |
Specify a period of responding with receiver not ready. | |
void | t30_set_phase_b_handler (t30_state_t *s, t30_phase_b_handler_t *handler, void *user_data) |
Set a callback function for T.30 phase B handling. | |
void | t30_set_phase_d_handler (t30_state_t *s, t30_phase_d_handler_t *handler, void *user_data) |
Set a callback function for T.30 phase D handling. | |
void | t30_set_phase_e_handler (t30_state_t *s, t30_phase_e_handler_t *handler, void *user_data) |
Set a callback function for T.30 phase E handling. | |
void | t30_set_document_handler (t30_state_t *s, t30_document_handler_t *handler, void *user_data) |
Set a callback function for T.30 end of document handling. |
|
Get the received ??? associated with a T.30 context. Get the received ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the country of origin of the remote FAX machine associated with a T.30 context. Get the country of origin of the remote FAX machine associated with a T.30 context.
|
|
Get the received ??? associated with a T.30 context. Get the received ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set the transmitted identifier associated with a T.30 context. Get the transmitted identifier associated with a T.30 context.
|
|
Get the received ??? associated with a T.30 context. Get the received ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received ??? associated with a T.30 context. Get the received ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the name of the model of the remote FAX machine associated with a T.30 context. Get the name of the model of the remote FAX machine associated with a T.30 context.
|
|
Set an NSC frame to be associated with a T.30 context. Get an NSC frame to be associated with a T.30 context.
|
|
Set an NSF frame to be associated with a T.30 context. Get an NSF frame to be associated with a T.30 context.
|
|
Set an NSS frame to be associated with a T.30 context. Get an NSS frame to be associated with a T.30 context.
|
|
Get the received password associated with a T.30 context. Get the received password (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received polled sub-address associated with a T.30 context. Get the received polled sub-address (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received selective polling address associated with a T.30 context. Get the received selective polling address (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received sender ident associated with a T.30 context. Get the received sender ident (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received sub-address associated with a T.30 context. Get the received sub-address associated with a T.30 context.
|
|
Get the received ??? associated with a T.30 context. Get the received ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the name of the vendor of the remote FAX machine associated with a T.30 context. Get the name of the vendor of the remote FAX machine associated with a T.30 context.
|
|
Get the received ??? associated with a T.30 context. Get the received ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received ??? associated with a T.30 context. Get the received ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set the transmitted identifier associated with a T.30 context. Get the transmitted identifier associated with a T.30 context.
|
|
Get the received ??? associated with a T.30 context. Get the received ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received ??? associated with a T.30 context. Get the received ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set an NSC frame to be associated with a T.30 context. Get an NSC frame to be associated with a T.30 context.
|
|
Set an NSF frame to be associated with a T.30 context. Get an NSF frame to be associated with a T.30 context.
|
|
Set an NSS frame to be associated with a T.30 context. Get an NSS frame to be associated with a T.30 context.
|
|
Get the header information associated with a T.30 context. Get the header information associated with a T.30 context.
|
|
Get the received password associated with a T.30 context. Get the received password (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received polled sub-address associated with a T.30 context. Get the received polled sub-address (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received selective polling address associated with a T.30 context. Get the received selective polling address (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received sender ident associated with a T.30 context. Get the received sender ident (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Get the received sub-address associated with a T.30 context. Get the received sub-address associated with a T.30 context.
|
|
Get the received ??? associated with a T.30 context. Get the received ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set a callback function for T.30 end of document handling. Set a callback function for T.30 end of document handling.
|
|
Select ECM capability. Specify if error correction mode (ECM) is allowed by a T.30 context.
|
|
Set Internet aware FAX (IAF) mode. Set Internet aware FAX (IAF) mode.
|
|
Set a callback function for T.30 phase B handling. Set a callback function for T.30 phase B handling.
|
|
Set a callback function for T.30 phase D handling. Set a callback function for T.30 phase D handling.
|
|
Set a callback function for T.30 phase E handling. Set a callback function for T.30 phase E handling.
|
|
Specify a period of responding with receiver not ready. Specify a period of responding with receiver not ready.
|
|
Specify the output encoding for TIFF files created during FAX reception. Specify the output encoding for TIFF files created during FAX reception.
|
|
Set next receive file name. Specify the file name of the next TIFF file to be received by a T.30 context.
|
|
Set T.30 status. Set T.30 status. This may be used to adjust the status from within the phase B and phase D callbacks.
|
|
Specify supported compression types. Specify which compression types are supported by a T.30 context.
|
|
Specify supported image sizes. Specify which images sizes are supported by a T.30 context.
|
|
Specify supported modems. Specify which modem types are supported by a T.30 context.
|
|
Specify supported resolutions. Specify which resolutions are supported by a T.30 context.
|
|
Specify supported T.30 features. Specify which special T.30 features are supported by a T.30 context.
|
|
Set the transmitted ??? associated with a T.30 context. Set the transmitted ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set the transmitted ??? associated with a T.30 context. Set the transmitted ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set next transmit file name. Specify the file name of the next TIFF file to be transmitted by a T.30 context.
|
|
Set the transmitted identifier associated with a T.30 context. Set the transmitted identifier associated with a T.30 context.
|
|
Set the transmitted ??? associated with a T.30 context. Set the transmitted ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set the transmitted ??? associated with a T.30 context. Set the transmitted ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set the transmitted NSC frame to be associated with a T.30 context. Set the transmitted NSC frame to be associated with a T.30 context.
|
|
Set the transmitted NSF frame to be associated with a T.30 context. Set the transmitted NSF frame to be associated with a T.30 context.
|
|
Set the transmitted NSS frame to be associated with a T.30 context. Set the transmitted NSS frame to be associated with a T.30 context.
|
|
Set the transmitted header information associated with a T.30 context. Set the transmitted header information associated with a T.30 context.
|
|
Set the transmitted password associated with a T.30 context. Set the transmitted password (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set the transmitted polled sub-address associated with a T.30 context. Set the transmitted polled sub-address (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set the transmitted selective polling address associated with a T.30 context. Set the transmitted selective polling address (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set the transmitted sender ident associated with a T.30 context. Set the transmitted sender ident (i.e. the one we will send to the far end) associated with a T.30 context.
|
|
Set the transmitted sub-address associated with a T.30 context. Set the transmitted sub-address associated with a T.30 context.
|
|
Set the transmitted ??? associated with a T.30 context. Set the transmitted ??? (i.e. the one we will send to the far end) associated with a T.30 context.
|