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:
:N_<network_device_name>:P_<protocol_name>:V_<voice_channel_name>
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.
4.14.2. Examples of the devicename ParameterThe following examples illustrate the devicename parameter when using E-1 ICAPI protocols:
:N_dtiB3T1:P_br_r2_i
:N_dtiB3T1:P_br_r2_i:V_dxxxB4C2
:N_dtiB1:P_br_r2_i
4.14.3. Other gc_OpenEx( ) ConsiderationsFor 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.
Click here to contact Telecom Support Resources
Copyright 2002, Intel Corporation