Previous PageTable Of Contents../index.htmlIndexNext Page

cc_CauseValue( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_CauseValue(linedev)

Inputs:

LINEDEV linedev

  line device handle

Returns:

cause value code

Includes:

cclib.h

Category:

System tools

Mode:

synchronous

Technology:

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

Top Of PageDescription

The cc_CauseValue( ) function retrieves the error/cause code of a failure on a given device when a function returns a -1. Use ResultMsg( ) to retrieve the ASCII string and interpret the reason code associated with the cause value.

NOTES:
1. The cc_CauseValue( ) function is equivalent to ATDV_LASTERR( ).
2. To retrieve the cause of an event or the cause information element of ISDN messages, use the cc_ResultValue( ) function.

There are three cause/error locations:

See Section 7.2. Error Handling for a listing of errors and cause values.

Parameter

Description

linedev:

The specified line device handle.

Top Of PageCautions

None

Top Of PageExample

Top Of PageErrors

The cc_CauseValue( ) function returns -1 when there is no error/cause code available for the specified line device. Error codes are defined in the files ccerr.h, isdnerr.h, and isdncmd.h.

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