Previous PageTable Of Contents../index.htmlIndexNext Page

cc_CRN2LineDev( )

Description | Cautions | Example | Errors

Name:

int cc_CRN2LineDev(crn, linedevp)

Inputs:

CRN crn

  call reference number

 

LINEDEV *linedevp

  pointer to a buffer to store the line device handle

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

System control

Mode:

synchronous

Technology:

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

Top Of PageDescription

The cc_CRN2LineDev( ) function is a utility function that matches a CRN to its line device handle. The function returns the line device handle associated with the specified call reference number (CRN).

Parameter

Description

crn:

The call reference number. Each call needs a CRN.

linedevp:

Points to the buffer where the line device handle will be stored.

Top Of PageCautions

The call reference number (CRN) exists after CCEV_OFFERED is received by the application or cc_MakeCall( ) is issued. The CRN is valid until the cc_ReleaseCall( ) function is issued.

Top Of PageExample

Top Of PageErrors

If the function returns < 0 to indicate failure, use the cc_CauseValue( ) function to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be used to interpret the reason code. Error codes are defined in the files ccerr.h, isdnerr.h, and isdncmd.h.

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


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