Справочник Пользователя для Dialogic 05-0867-005

Скачать
Страница из 476
6.  Data Structure Reference
305
6.7.  L2_BLK
The L2_BLK structure is used to send and receive layer 2 information to an ISDN
interface using the cc_GetFrame( ) and cc_SndFrame( ) functions.
The structure is defined as follows:
#define MAXLEN_IEDATA
254
typedef struct
{
char
sapi;
char
ces;
short
length;
char
data[MAXLEN_DATA];
}
L2_BLK, *L2_BLK_PTR;
Table 36.  L2_BLK Field Descriptions
Field
Description
sapi
The Service Access Point Identifier (applies to BRI only, set to 0
for PRI).
ces
The Connection Endpoint Suffix (applies to BRI only, set to 0 for
PRI).
length
The total bytes of the following data field.
data
This field contains the received frame.
6.8.  MAKECALL_BLK
The MAKECALL_BLK structure contains the parameters used to specify an
outgoing call. Outgoing calls are made using the cc_MakeCall( ) function. The
parameters for outgoing calls are set when the MAKECALL Block function is
initialized. For information on initializing the MAKECALL Block, see Section
6.8.1.  MAKECALL_BLK Initialization
.
The structure is defined as follows:
struct is {
unsigned char BC_xfer_cap;
unsigned char BC_xfer_mode;