Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

t38_gateway.h File Reference

Go to the source code of this file.

Classes

struct  t38_stats_t

Defines

#define _SPANDSP_T38_GATEWAY_H_
#define T38_RX_BUF_LEN   2048
#define T38_TX_HDLC_BUFS   256
#define T38_MAX_HDLC_LEN   260

Typedefs

typedef t38_gateway_state_s t38_gateway_state_t
typedef void( t38_gateway_real_time_frame_handler_t )(t38_gateway_state_t *s, void *user_data, int direction, const uint8_t *msg, int len)
 T.30 real time frame handler.

Functions

 SPAN_DECLARE (t38_gateway_state_t *) t38_gateway_init(t38_gateway_state_t *s
 Initialise a gateway mode T.38 context.
 SPAN_DECLARE (int) t38_gateway_release(t38_gateway_state_t *s)
 Release a T.38 context.
 SPAN_DECLARE (void) t38_gateway_set_ecm_capability(t38_gateway_state_t *s
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (t38_core_state_t *) t38_gateway_get_t38_core_state(t38_gateway_state_t *s)
 Get a pointer to the T.38 core IFP packet engine associated with a T.38 context.
 SPAN_DECLARE (logging_state_t *) t38_gateway_get_logging_state(t38_gateway_state_t *s)
 Get a pointer to the logging context associated with a T.38 context.

Variables

t38_tx_packet_handler_t * tx_packet_handler
t38_tx_packet_handler_t void * tx_packet_user_data
int16_t amp []
int16_t int len
int16_t int max_len
int ecm_allowed
int transmit_on_idle
int supported_modems
const uint8_t * from_t38
const uint8_t int from_t38_len
const uint8_t int const uint8_t * from_modem
const uint8_t int const uint8_t
int 
from_modem_len
int use_tep
int remove
t38_stats_t * t
t38_gateway_real_time_frame_handler_thandler
t38_gateway_real_time_frame_handler_t
void * 
user_data


Detailed Description


Typedef Documentation

typedef void( t38_gateway_real_time_frame_handler_t)(t38_gateway_state_t *s, void *user_data, int direction, const uint8_t *msg, int len)
 

T.30 real time frame handler.

T.30 real time frame handler.

Parameters:
s The T.30 context.
user_data An opaque pointer.
direction TRUE for incoming, FALSE for outgoing.
msg The HDLC message.
len The length of the message.


Function Documentation

SPAN_DECLARE logging_state_t  ) 
 

Get a pointer to the logging context associated with a T.38 context.

Get a pointer to the logging context associated with a FAX context.

Parameters:
s The FAX context.
Returns:
A pointer to the logging context, or NULL.

SPAN_DECLARE t38_core_state_t  ) 
 

Get a pointer to the T.38 core IFP packet engine associated with a T.38 context.

Get a pointer to the T.38 core IFP packet engine associated with a gateway mode T.38 context.

Parameters:
s The T.38 context.
Returns:
A pointer to the T.38 core context, or NULL.

SPAN_DECLARE void   ) 
 

Cleanup a T.30 context if the call terminates.

Control whether error correcting mode (ECM) is allowed.

Parameters:
s The T.38 context.
ecm_allowed TRUE is ECM is to be allowed.

SPAN_DECLARE int32_t   ) 
 

Release a T.38 context.

Compress a block of octets.

Parameters:
s The V.42bis context.
buf The data to be compressed.
len The length of the data buffer.
Returns:
0

SPAN_DECLARE t38_gateway_state_t  ) 
 

Initialise a gateway mode T.38 context.

Parameters:
s The T.38 context.
tx_packet_handler A callback routine to encapsulate and transmit T.38 packets.
tx_packet_user_data An opaque pointer passed to the tx_packet_handler routine.
Returns:
A pointer to the termination mode T.38 context, or NULL if there was a problem.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1