28 #if !defined(_SPANDSP_T31_H_) 29 #define _SPANDSP_T31_H_ 45 typedef int (t31_modem_control_handler_t)(
t31_state_t *s,
void *user_data,
int op,
const char *num);
47 #define T31_TX_BUF_LEN (4096) 48 #define T31_TX_BUF_HIGH_TIDE (4096 - 1024) 49 #define T31_TX_BUF_LOW_TIDE (1024) 50 #define T31_MAX_HDLC_LEN 284 51 #define T31_T38_MAX_HDLC_LEN 260 53 #if defined(__cplusplus) 58 SPAN_DECLARE(
void) t31_call_event(
t31_state_t *s,
int event);
60 SPAN_DECLARE(
int) t31_at_rx(
t31_state_t *s,
const char *t,
int len);
87 SPAN_DECLARE(
int) t31_t38_send_timeout(
t31_state_t *s,
int samples);
136 at_tx_handler_t *at_tx_handler,
137 void *at_tx_user_data,
138 t31_modem_control_handler_t *modem_control_handler,
139 void *modem_control_user_data,
140 t38_tx_packet_handler_t *tx_t38_packet_handler,
141 void *tx_t38_packet_user_data);
155 #if defined(__cplusplus) t31_state_t * t31_init(t31_state_t *s, at_tx_handler_t *at_tx_handler, void *at_tx_user_data, t31_modem_control_handler_t *modem_control_handler, void *modem_control_user_data, t38_tx_packet_handler_t *tx_t38_packet_handler, void *tx_t38_packet_user_data)
Initialise a T.31 context.
Definition: t31.c:2605
void t31_set_t38_config(t31_state_t *s, int without_pacing)
Select whether T.38 data will be paced.
Definition: t31.c:2526
logging_state_t * t31_get_logging_state(t31_state_t *s)
Get a pointer to the logging context associated with a T.31 context.
Definition: t31.c:2560
void t31_set_transmit_on_idle(t31_state_t *s, int transmit_on_idle)
Select whether silent audio will be sent when transmit is idle.
Definition: t31.c:2514
SPAN_DECLARE_NONSTD(int) t31_rx(t31_state_t *s
Process a block of received T.31 modem audio samples.
int t31_free(t31_state_t *s)
Release a T.31 context.
Definition: t31.c:2700
int t31_release(t31_state_t *s)
Release a T.31 context.
Definition: t31.c:2693
Definition: private/logging.h:33
void t31_set_tep_mode(t31_state_t *s, int use_tep)
Select whether TEP mode will be used.
Definition: t31.c:2520
Definition: private/t38_core.h:32
Definition: private/t31.h:136
int t38_mode
Definition: private/t31.h:145