User`s guide

Dialogic
®
System Release 6.0 PCI for Windows
®
Release Update, Rev 62 — January 30, 2008 130
Dialogic Corporation
be issued on all channels (time slots) prior to issuing gc_SetConfigData( ) to prevent
incoming calls. If there are any active calls present at the time the gc_ResetLineDev( ) or
gc_SetConfigData( ) function is issued, they are gracefully terminated internally. The
application does not receive GCEV_DISCONNECTED events when calls are terminated
in this manner.
Setting the Line Type and Coding for a Trunk
The gc_SetConfigData( ) function can be used on the board device to reconfigure the
line type for the trunk. The gc_SetConfigData( ) function uses a GC_PARM_BLK
structure that contains the configuration information. The GC_PARM_BLK is populated
using the gc_util_insert_parm_val( ) function.
To configure the line type, use the gc_util_insert_parm_val( ) function with the following
parameter values:
parm_blkpp = pointer to the address of a valid GC_PARM_BLK structure where the
parameter and value are to be inserted
setID = CCSET_LINE_CONFIG
parmID = CCPARM_LINE_TYPE
data_size = sizeof(int)
data = One of the following values:
- Enum_LineType_dsx1_D4 - D4 framing type, Superframe (SF)
- Enum_LineType_dsx1_ESF - Extended Superframe (ESF)
- Enum_LineType_dsx1_E1 - E1 standard framing
- Enum_LineType_dsx1_E1_CRC - E1 standard framing and CRC-4
To configure the coding type, use the gc_util_insert_parm_val( ) function with the
following parameter values:
parm_blkpp = pointer to the address of a valid GC_PARM_BLK structure where the
parameter and value are to be inserted
setID = CCSET_LINE_CONFIG
parmID = CCPARM_CODING_TYPE
data_size = sizeof(int)
data = One of the following values:
- Enum_CodingType_AMI - Alternate Mark Inversion
- Enum_CodingType_B8ZS - Modified AMI used on T1 lines
- Enum_CodingType_HDB3 - High Density Bipolar of Order 3 used on E1 lines
Once the GC_PARM_BLK has been populated with the desired values, the
gc_SetConfigData( ) function can be issued to perform the configuration. The parameter
values for the gc_SetConfigData( ) function are as follows:
target_type = GCTGT_CCLIB_NETIF
target_id = the trunk line device handle, as obtained from gc_OpenEx( ) with a
devicename string of “:N_dtiBx:P...”.