Previous PageTable Of ContentsHomeIndexNext Page



4.14. gc_OpenEx( )

The gc_OpenEx( ) function is used to open both network board and channel (time slot) devices. This generic call control function initializes the specified time slot on the specified trunk. A line device ID will be returned to the application. The E-1 or T-1 feature of this function specifies the voice device as part of the devicename parameter.

A device is specified by the devicename parameter using a format that includes protocol specific information.

The format for the fields used to specify this parameter is:

The prefixes (N_, P_, and V_) are used for parsing purposes. These fields may appear in any order. The fields within the devicename parameter must each begin with a colon.

The conventions described below allow the Global Call API to map subsequent calls made on specific line devices or CRNs to interface-specific libraries.

The following examples illustrate the devicename parameter when using E-1 ICAPI protocols:

For E-1 CAS or T-1 robbed bit applications, always specify a network resource (board or time slot level) and a protocol. A voice resource (<voice_channel_name>) may also be specified for E-1 CAS or T-1 robbed bit operations. When a voice resource is specified, Global Call automatically opens the voice device and internally attaches the voice device to the line device.

When using the CT Bus and a voice resource is specified, the gc_OpenEx( ) function routes the voice and network resources together.

When the voice resource is not specified, the application must perform these functions (open device, route, attach); see Section 5.1. Dedicated Voice Resources and Section 5.2. Shared Voice Resources for details.

When a network resource is specified, the gc_OpenEx( ) function internally issues a dt_open( ) function. Likewise, when a voice resource is specified, the gc_OpenEx( ) function internally issues a dx_open( ) function. The corresponding network or voice device handle may be retrieved using the gc_GetResourceH( ) function. These lower level device handles may be useful for routing or for playing or recording a file.

If a gc_OpenEx( ) function fails with an error value of EGC_DXOPEN, then the internally issued dx_open( ) function failed. If a gc_OpenEx( ) function fails with an error value of EGC_DTOPEN, then the internally issued dt_open( ) function failed.


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Telecom Support Resources

Copyright 2002, Intel Corporation
All rights reserved
This page generated November, 2002