Previous PageTable Of Contents../index.htmlIndexNext Page

cc_Open( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_Open(linedevp, devicename, rfu)

Inputs:

LINEDEV *linedevp

  pointer to the buffer storing the line device handle

 

char *devicename

  name of the device

 

int rfu

  reserved for future use

Returns:

0 on success
<0 on failure

Includes:

cclib.h

Category:

Call control

Mode:

synchronous

Technology:

BRI/2; BRI/SC; PRI (all protocols)

Top Of PageDescription

The cc_Open( ) function opens a device and returns a unique line device handle to identify the physical device that carries the call. The cc_Open( ) function is used to open both network board and channel (that is, time slot) devices. Once a device is opened, all subsequent references to the opened device must be made using the line device number that is returned to and placed in linedevp.

NOTE:
A channel cannot be opened twice in the same process.

Parameter

Description

linedevp:

A unique number placed in the location pointed to by linedev. The number identifies the specific device opened by this function.

devicename:

The pointer to the ASCII string that defines the device or devices that will be associated with the returned line device. The format for devicename is as follows:

 

PRI:

  dtiBx for board

  dtiBxTy for time slot

BRI:

  briSx for board

  briSxTy for time slot

rfu:

Reserved for future use. Set rfu to 0.

Each PRI structure is composed of one D channel and 23 (T1) or 30 (E1) B (bearer) channels. A PRI board device, such as dtiB1, is defined as a station and controls the D channel. A PRI time slot device, such dtiB1T1, is defined as a bearer channel under a station.

Each BRI structure is composed of one D channel and two B (bearer) channels. A BRI board device, such as briS1, is defined as a station and controls the D-channel the same way as a PRI board device. A BRI time slot device, such as briS1T1, is defined as a bearer channel under a station and is handled the same way as a PRI line device.

Top Of PageCautions

Do not open a D or B channel more than once from the same process, or unpredictable results could occur.

Top Of PageExample

Top Of PageErrors

If the function returns < 0 to indicate failure, check errno.h to retrieve the reason for the failure.

Typically, a < 0 return code for the cc_Open( ) function indicates that the function reference (the device name) is not valid for the function call.

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated December, 2001